| Conditions | 6 |
| Paths | 12 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public static function extend($method, $callback=null){ |
||
| 32 | $methods = ($callback === null && is_array($method)) ? $method : [$method=>$callback]; |
||
| 33 | foreach ($methods as $name => $meth) { |
||
| 34 | if ($meth && $meth instanceof \Closure) |
||
| 35 | static::$__PROTOTYPE__[$name] = $meth; |
||
| 36 | else throw new \BadMethodCallException; |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 41 |