file-fetcher
Public Member Functions | List of all members
FileFetcher\Processor\LastResort Class Reference
Inheritance diagram for FileFetcher\Processor\LastResort:
FileFetcher\Processor\ProcessorInterface

Public Member Functions

 isServerCompatible (array $state)
 
 setupState (array $state)
 
 isTimeLimitIncompatible ()
 
 copy (array $state, Result $result, int $timeLimit=PHP_INT_MAX)
 

Member Function Documentation

◆ copy()

FileFetcher\Processor\LastResort::copy ( array  $state,
Result  $result,
int  $timeLimit = PHP_INT_MAX 
)

Copying data from the "source location" into a file.

Returns
array The return should contain the $state and the $result.

Implements FileFetcher\Processor\ProcessorInterface.

◆ isServerCompatible()

FileFetcher\Processor\LastResort::isServerCompatible ( array  $state)

Whether the server holding the "file" will work with this processor.

Returns
bool

Implements FileFetcher\Processor\ProcessorInterface.

◆ isTimeLimitIncompatible()

FileFetcher\Processor\LastResort::isTimeLimitIncompatible ( )

Whether the processor can deal with time limits.

Returns
bool

Implements FileFetcher\Processor\ProcessorInterface.

◆ setupState()

FileFetcher\Processor\LastResort::setupState ( array  $state)

An opportunity to modify the state before attempting to fetch the file.

Returns
array The appropriately modified state.

Implements FileFetcher\Processor\ProcessorInterface.


The documentation for this class was generated from the following file: