class Slicer (View source)

Slicer for catching one waybill on the waybills

Methods

source(string $source)

Setter for $source

page(int $page)

Setter for $page

mixed
save(string $path, Destination $destination = Destination::FILE)

Save the page of waybills

mixed
download(string $path)

Download the page of waybills

static Slicer
of(ParcelService $parcelService, int $page)

Factory method to create an instance of Slicer

Details

Slicer source(string $source)

Setter for $source

Parameters

string $source

The source to save the waybills

Return Value

Slicer

The method returns self instance

Examples

$slicer = Slicer::of(ParcelService::Cj)->source(realpath(__DIR__.'/../dist'))->...

Slicer page(int $page)

Setter for $page

Parameters

int $page

The page to save the waybills

Return Value

Slicer

The method returns self instance

Examples

$slicer = Slicer::of(ParcelService::Cj)->page(1)->...

mixed save(string $path, Destination $destination = Destination::FILE)

Save the page of waybills

Parameters

string $path

The path to save the waybills

Destination $destination

The destination

Return Value

mixed

The method returns

mixed download(string $path)

Download the page of waybills

Parameters

string $path

The path to save the waybills

Return Value

mixed

The method returns

static Slicer of(ParcelService $parcelService, int $page)

Factory method to create an instance of Slicer

Parameters

ParcelService $parcelService

The waybills type

int $page

The page to save the waybills

Return Value

Slicer

The method returns the Slicer instance

Examples

Slicer::of(ParcelService::Cj)->...