Base class for all protocols supporting file transfers
__call(string $method, array $options) : mixed
stringMethod to call
arrayOptions for this method
\Zend\File\Transfer\Exception\BadMethodCallException |
if unknown method |
|---|
mixed__construct(string $adapter, bool $direction, array $options)
stringAdapter to use
boolOPTIONAL False means Download, true means upload
arrayOPTIONAL Options to set for this adapter
\Zend\File\Transfer\Exception\InvalidArgumentException |
|---|
getAdapter(bool $direction) : array | \Zend\File\Transfer\Adapter\AbstractAdapter
boolOn null, all directions are returned On false, download direction is returned On true, upload direction is returned
setAdapter(string $adapter, bool $direction, array $options) : \Zend\File\Transfer\Transfer
stringAdapter to use
boolOPTIONAL False means Download, true means upload
arrayOPTIONAL Options to set for this adapter
\Zend\File\Transfer\Exception\InvalidArgumentException |
|---|
$adapter : array