1 | <?php |
||
7 | class Criteria 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) |
||
28 | } |
||
29 |
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: