| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 7 | trait Prototypeable{ |
||
| 8 | |||
| 9 | /** |
||
| 10 | * @param string $name |
||
| 11 | * @param array $args |
||
| 12 | * @return mixed |
||
| 13 | */ |
||
| 14 | public function __call(string $name, array $args) |
||
| 15 | { |
||
| 16 | return Prototypes::call($this, $name, $args); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param string $name |
||
| 21 | * @param Closure $fun |
||
| 22 | * @throws Exception |
||
| 23 | */ |
||
| 24 | final public static function addMethod(string $name, Closure $fun): void |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $name |
||
| 31 | * @param array $args |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public static function __callStatic(string $name, array $args) |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $name |
||
| 41 | * @param Closure $fun |
||
| 42 | * @throws Exception |
||
| 43 | */ |
||
| 44 | final public static function addStaticMethod(string $name, Closure $fun): void |
||
| 50 |