| 1 | <?php |
||
| 7 | class Subset implements Renderable { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * [__construct description] |
||
| 11 | * @param \EnergieProduction\Chart\Contracts\Renderable $render |
||
| 12 | */ |
||
| 13 | public function __construct(Renderable $render) |
||
| 17 | |||
| 18 | /** |
||
| 19 | * [handle description] |
||
| 20 | * @param string $key |
||
| 21 | * @param mixed $content |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function handle($key, $content) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * [dotNotationToArray description] |
||
| 42 | * @param array &$arr |
||
| 43 | * @param string $path |
||
| 44 | * @param string $val |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | protected function dotNotationToArray(array &$arr, $path, $val) |
||
| 60 | } |
||
| 61 |
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: