1 | <?php |
||
19 | class ApacheWebServer extends WebServer |
||
20 | { |
||
21 | /** |
||
22 | * Constructor. |
||
23 | * |
||
24 | * @param string $version the semver-like version of the apache webserver |
||
25 | */ |
||
26 | 15 | public function __construct($version = '') |
|
31 | |||
32 | 3 | public function extractVersion($settings = '') |
|
36 | |||
37 | 3 | public function extractRootConfigurationFile($settings = '') |
|
41 | |||
42 | /** |
||
43 | * Loads and cleans a config file. |
||
44 | * |
||
45 | * @param string $file a Configuration file |
||
46 | * |
||
47 | * @return array an array of the cleaned directives of a the config per entry |
||
48 | */ |
||
49 | 1 | public function getActiveConfig($file = '') |
|
53 | } |
||
54 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: