| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 91.67% |
| Changes | 2 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 5 | class Chain |
||
| 6 | { |
||
| 7 | protected $data; |
||
| 8 | protected $method; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Chain constructor. |
||
| 12 | * |
||
| 13 | * @param $args |
||
| 14 | */ |
||
| 15 | 3 | public function __construct($args, $method) |
|
| 18 | 3 | } |
|
| 19 | |||
| 20 | 1 | public function __call($method, $args) |
|
| 21 | { |
||
| 22 | 1 | $this->data[] = [$args, $method]; |
|
| 23 | 1 | ||
| 24 | return $this; |
||
| 25 | } |
||
| 26 | 3 | ||
| 27 | public function __destruct() |
||
| 34 | } |
||
| 35 | } |
||
| 36 |