1 | <?php |
||
5 | class Session extends AbstractSystem |
||
6 | { |
||
7 | /** |
||
8 | * {@inheritdoc} |
||
9 | * |
||
10 | * @return null |
||
11 | */ |
||
12 | public function __invoke() |
||
16 | |||
17 | /** |
||
18 | * Initialize sessions system |
||
19 | * Automaticaly destroy cookie if browser quit and start sessions |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function init() |
||
38 | |||
39 | /** |
||
40 | * Obtain the value of the option runSession passed to Application |
||
41 | * |
||
42 | * @return boolean |
||
43 | */ |
||
44 | protected function obtainRunSession() |
||
51 | } |
||
52 |
If you implement
__call
and 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
__call
is implemented by a parent class and only the child class knows which methods exist: