1 | <?php |
||
7 | class TestBoot implements BootInterface, BootstrapSelectionInterface |
||
8 | { |
||
9 | protected $path; |
||
10 | protected $siteSelector; |
||
11 | protected $version; |
||
12 | |||
13 | public function __construct($path, $version, $services) |
||
19 | |||
20 | /** |
||
21 | * @inheritdoc |
||
22 | */ |
||
23 | function isValid($path) |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | function getBootstrap($path, $siteSelector = null) |
||
41 | |||
42 | function getPath() |
||
46 | |||
47 | function getSiteSelector() |
||
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | function getFrameworkVersion() |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | function getServiceFeatures() |
||
67 | |||
68 | /** |
||
69 | * @inheritdoc |
||
70 | */ |
||
71 | public function boot($serviceFeatures, $siteSelector = null) |
||
75 | |||
76 | /** |
||
77 | * @inheritdoc |
||
78 | */ |
||
79 | public function terminate() |
||
82 | } |
||
83 |
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: