Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
FactoryOptions.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
9 
14 {
18  private $host;
19 
23  private $port;
24 
28  private $username;
29 
33  private $password;
34 
38  private $virtualHost;
39 
43  private $sslEnabled = false;
44 
48  private $sslOptions;
49 
53  public function getHost(): string
54  {
55  return $this->host;
56  }
57 
63  public function setHost(string $host)
64  {
65  $this->host = $host;
66  }
67 
71  public function getPort(): string
72  {
73  return $this->port;
74  }
75 
81  public function setPort(string $port)
82  {
83  $this->port = $port;
84  }
85 
89  public function getUsername(): string
90  {
91  return $this->username;
92  }
93 
99  public function setUsername(string $username)
100  {
101  $this->username = $username;
102  }
103 
107  public function getPassword(): string
108  {
109  return $this->password;
110  }
111 
117  public function setPassword(string $password)
118  {
119  $this->password = $password;
120  }
121 
125  public function getVirtualHost()
126  {
127  return $this->virtualHost;
128  }
129 
135  public function setVirtualHost(string $virtualHost = null)
136  {
137  $this->virtualHost = $virtualHost;
138  }
139 
143  public function isSslEnabled(): bool
144  {
145  return $this->sslEnabled;
146  }
147 
153  public function setSslEnabled(bool $sslEnabled)
154  {
155  $this->sslEnabled = $sslEnabled;
156  }
157 
161  public function getSslOptions()
162  {
163  return $this->sslOptions;
164  }
165 
171  public function setSslOptions(array $sslOptions = null)
172  {
173  $this->sslOptions = $sslOptions;
174  }
175 }