Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | protected function isConfigurationFrozen() |
||
48 | { |
||
49 | $flag = false; |
||
50 | |||
51 | if ($this instanceof Configuration) { |
||
52 | $flag = $this->isConfigurationFrozenRoot(); |
||
|
|||
53 | } elseif ($this->hasParent(Configuration::class)) { |
||
54 | $flag = $this->getFirstParent(Configuration::class)->isConfigurationFrozenRoot(); |
||
55 | } |
||
56 | |||
57 | return $flag; |
||
58 | } |
||
59 | } |
||
60 |
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: