Base class for all protocols supporting file transfers
__call(string $method, array $options) : mixed
string
Method to call
array
Options for this method
\Zend\File\Transfer\Exception\BadMethodCallException |
if unknown method |
---|
mixed
__construct(string $adapter, bool $direction, array $options)
string
Adapter to use
bool
OPTIONAL False means Download, true means upload
array
OPTIONAL Options to set for this adapter
\Zend\File\Transfer\Exception\InvalidArgumentException |
---|
getAdapter(bool $direction) : array | \Zend\File\Transfer\Adapter\AbstractAdapter
bool
On 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
string
Adapter to use
bool
OPTIONAL False means Download, true means upload
array
OPTIONAL Options to set for this adapter
\Zend\File\Transfer\Exception\InvalidArgumentException |
---|
$adapter : array