hostname = (string)$hostname; $this->username = (string)$username; $this->password = (string)$password; $this->rootDir = (string)$rootDir; $this->port = (int)$port; $this->timeout = (int)$timeout; $this->passive = (bool)$passive; $this->ssl = (bool)$ssl; } /** * @return array */ public function toArray() { return [ 'host' => $this->hostname, 'username' => $this->username, 'password' => $this->password, 'root' => $this->rootDir, 'port' => $this->port, 'timeout' => $this->timeout, 'passive' => $this->passive, 'ssl' => $this->ssl, 'recurseManually' => true, ]; } /** * @return string */ public function getHostname() { return $this->hostname; } /** * @return string */ public function getUsername() { return $this->username; } /** * @return string */ public function getPassword() { return $this->password; } /** * @return null */ public function getRootDir() { return $this->rootDir; } /** * @return int */ public function getPort() { return $this->port; } /** * @return int */ public function getTimeout() { return $this->timeout; } /** * @return bool */ public function isPassive() { return $this->passive; } /** * @return bool */ public function isSsl() { return $this->ssl; } }