| 1 | <?php |
||
| 5 | class Monolog extends AbstractSystem |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var \BFW\Monolog|null $monolog The monolog system for bfw channel |
||
| 9 | */ |
||
| 10 | protected $monolog; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | * |
||
| 15 | * @return \BFW\Monolog|null |
||
| 16 | */ |
||
| 17 | public function __invoke() |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return \BFW\Monolog|null |
||
| 24 | */ |
||
| 25 | public function getMonolog() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | * Initialize all monolog handlers declared for bfw channel |
||
| 33 | */ |
||
| 34 | public function init() |
||
| 46 | } |
||
| 47 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: