| 1 | <?php |
||
| 7 | class MessageHookCollection implements \IteratorAggregate |
||
| 8 | { |
||
| 9 | private |
||
| 10 | $hooks; |
||
|
1 ignored issue
–
show
|
|||
| 11 | |||
| 12 | public function __construct(array $hooks = array()) |
||
| 18 | |||
| 19 | 1 | public function add(MessageHook $hook) |
|
| 23 | |||
| 24 | 1 | public function getIterator() |
|
| 28 | } |
||
| 29 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.