1 | <?php |
||
12 | class Kernel extends KernelForTest |
||
13 | { |
||
14 | /** @var array */ |
||
15 | protected $registrableBundles = array(); |
||
16 | |||
17 | /** @var \Closure */ |
||
18 | protected $configCallback; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function getCacheDir() |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | protected function getContainerClass() |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function registerBundles() |
||
52 | |||
53 | /** |
||
54 | * @param array $bundles |
||
55 | * @return $this |
||
56 | */ |
||
57 | public function setRegistrableBundles($bundles) |
||
63 | |||
64 | /** |
||
65 | * @param \Closure $callback |
||
66 | * @return $this |
||
67 | */ |
||
68 | public function setConfigCallback(\Closure $callback) |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function registerContainerConfiguration(LoaderInterface $loader) |
||
85 | |||
86 | public function __destruct() |
||
91 | } |
||
92 |
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: