public function __clone() { parent::__clone(); $this->closeFtpConnection(); $this->fileName = null; $this->fileMatcher = null; }
/** * @inheritdoc */ public function __construct(Connection $conn, $destination = null, EventDispatcherInterface $dispatcher = null) { parent::__construct($conn, $destination, $dispatcher); if (!isset($this->connection['file'])) { throw new \InvalidArgumentException('The "file" key is required in the Connection object'); } if (!is_readable($this->connection['file'])) { throw new TransportException(sprintf('Not readable: %s', $this->connection['file'])); } }
public function __construct() { parent::__construct(new Connection([])); }