Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
32 | View Code Duplication | public function requirePublicResource( |
|
33 | $type, |
||
34 | $filename, |
||
35 | $position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT, |
||
36 | $arguments = '' |
||
37 | ) { |
||
38 | $resource = new Ajde_Resource_Public($type, $filename, $arguments); |
||
39 | $this->getParser()->getDocument()->addResource($resource, $position); |
||
40 | } |
||
41 | |||
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: