| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | View Code Duplication | public function requireRemoteResource( |
|
| 43 | $type, |
||
| 44 | $url, |
||
| 45 | $position = Ajde_Document_Format_Html::RESOURCE_POSITION_DEFAULT, |
||
| 46 | $arguments = '' |
||
| 47 | ) { |
||
| 48 | $resource = new Ajde_Resource_Remote($type, $url, $arguments); |
||
| 49 | $this->getParser()->getDocument()->addResource($resource, $position); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |
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: