1 | <?php |
||
16 | trait DebugTrait |
||
17 | { |
||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | * |
||
21 | * @codeCoverageIgnore |
||
22 | * |
||
23 | * @see \Novactive\Collection\Collection::doThrow |
||
24 | */ |
||
25 | protected function doThrow($message, $arguments) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | * |
||
41 | * @codeCoverageIgnore |
||
42 | * |
||
43 | * @see \Novactive\Collection\Collection::dump |
||
44 | */ |
||
45 | public function dump() |
||
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: