public function __construct($host, $user, $password, $environment) { $this->connection = new \FtpClient\FtpClient(); $this->connection->connect($host); $this->connection->login($user, $password); $this->environment = $environment; }