1 | <?php |
||
29 | 1 | final class Configuration |
|
30 | { |
||
31 | /** |
||
32 | * Implement nette smart magic |
||
33 | */ |
||
34 | 1 | use Nette\SmartObject; |
|
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | private $host; |
||
40 | |||
41 | /** |
||
42 | * @var int |
||
43 | */ |
||
44 | private $port; |
||
45 | |||
46 | /** |
||
47 | * @var bool |
||
48 | */ |
||
49 | private $persistent; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | private $protocol; |
||
55 | |||
56 | /** |
||
57 | * @param string $host |
||
58 | * @param int $port |
||
59 | * @param bool $persistent |
||
60 | * @param string $protocol |
||
61 | */ |
||
62 | public function __construct( |
||
73 | |||
74 | /** |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getHost() : string |
||
81 | |||
82 | /** |
||
83 | * @return int |
||
84 | */ |
||
85 | public function getPort() : int |
||
89 | |||
90 | /** |
||
91 | * @return bool |
||
92 | */ |
||
93 | public function isPersistent() : bool |
||
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | public function getProtocol() : string |
||
105 | } |
||
106 |