| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function addExt( |
||
| 38 | $extension, |
||
| 39 | /*# string */ $eventName = '*', |
||
| 40 | /*# int */ $priority = 0 |
||
| 41 | ) { |
||
| 42 | if (is_object($extension) && $extension instanceof ExtensionInterface) { |
||
| 43 | $this->addExtension($extension); |
||
| 44 | } else { |
||
| 45 | $this->registerEvent($eventName, [$extension, $priority]); |
||
| 46 | } |
||
| 47 | return $this; |
||
| 48 | } |
||
| 49 | } |
||
| 50 |