| 1 | <?php |
||
| 7 | class CLILogger extends AbstractLogger |
||
| 8 | { |
||
| 9 | |||
| 10 | protected $debug; |
||
| 11 | |||
| 12 | function __construct($debug = false) |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Logs with an arbitrary level. |
||
| 19 | * |
||
| 20 | * @param mixed $level |
||
| 21 | * @param string $message |
||
| 22 | * @param array $context |
||
| 23 | * @return null |
||
| 24 | */ |
||
| 25 | public function log($level, $message, array $context = array()) |
||
| 51 | |||
| 52 | } |
||
| 53 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.