1 | <?php |
||
4 | class ServerItem |
||
5 | { |
||
6 | const DATE_FORMAT = 'Y-m-d H:i:s'; |
||
7 | |||
8 | protected $name; |
||
9 | protected $dateStarted; |
||
10 | protected $dateStopped; |
||
11 | protected $pid; |
||
12 | protected $port; |
||
13 | protected $configFilePath; |
||
14 | |||
15 | /** |
||
16 | * @return mixed |
||
17 | */ |
||
18 | public function getName() |
||
22 | |||
23 | /** |
||
24 | * @param mixed $name |
||
25 | * @return ServerItem |
||
26 | */ |
||
27 | public function setName($name) |
||
32 | |||
33 | /** |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function getDateStarted() |
||
40 | |||
41 | /** |
||
42 | * @param mixed $dateStarted |
||
43 | * @return ServerItem |
||
44 | */ |
||
45 | public function setDateStarted($dateStarted) |
||
50 | |||
51 | /** |
||
52 | * @return mixed |
||
53 | */ |
||
54 | public function getDateStopped() |
||
58 | |||
59 | /** |
||
60 | * @param mixed $dateStopped |
||
61 | * @return ServerItem |
||
62 | */ |
||
63 | public function setDateStopped($dateStopped) |
||
68 | |||
69 | /** |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function getPid() |
||
76 | |||
77 | /** |
||
78 | * @param mixed $pid |
||
79 | * @return ServerItem |
||
80 | */ |
||
81 | public function setPid($pid) |
||
86 | |||
87 | /** |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function getPort() |
||
94 | |||
95 | /** |
||
96 | * @param mixed $port |
||
97 | * @return ServerItem |
||
98 | */ |
||
99 | public function setPort($port) |
||
104 | |||
105 | /** |
||
106 | * @return mixed |
||
107 | */ |
||
108 | public function getConfigFilePath() |
||
112 | |||
113 | /** |
||
114 | * @param mixed $configFilePath |
||
115 | * @return ServerItem |
||
116 | */ |
||
117 | public function setConfigFilePath($configFilePath) |
||
122 | |||
123 | public function toArray() |
||
127 | |||
128 | /** |
||
129 | * @return array |
||
130 | */ |
||
131 | public static function getAllProperties() |
||
135 | |||
136 | } |