1 | <?php |
||
8 | class Yolo implements Lolifier |
||
9 | { |
||
10 | private |
||
11 | $acceptedLevels; |
||
|
|||
12 | |||
13 | 10 | public function __construct() |
|
14 | { |
||
15 | 10 | $this->acceptedLevels = array( |
|
16 | 10 | Logger::DEBUG, |
|
17 | 10 | Logger::INFO, |
|
18 | ); |
||
19 | 10 | } |
|
20 | |||
21 | 8 | public function isHandling(array $record) |
|
25 | |||
26 | 1 | public function lolify(array $record) |
|
30 | } |
||
31 | |||
32 |
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.