/** * @param string $host * @param string $login * @param string $password * @param int $port * @param array $options * @throws ConnectionException */ public function __construct($host, $login, $password, $port = 21, array $options = []) { parent::__construct($options); $this->host = $host; $this->login = $login; $this->password = $password; $this->port = $port; $this->maxTry = isset($options['maxTry']) && $options['maxTry'] > 0 ? $options['maxTry'] : 5; $this->tryInterval = isset($options['tryInterval']) && $options['tryInterval'] > 0 ? $options['tryInterval'] : 60; $this->connection = $this->connectWithTry(); }
/** * @param string $repository * @param array $options */ public function __construct($repository, array $options = []) { $this->repository = $repository; parent::__construct($options); }
/** * @param AwsClientInterface $s3Client * @param string $bucket * @param array $options */ public function __construct(AwsClientInterface $s3Client, $bucket, array $options = []) { $this->s3Client = $s3Client; $this->bucket = $bucket; parent::__construct($options); }