| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 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) |
|
| 16 | { |
||
| 17 | 3 | $this->data[] = [$args, $method]; |
|
| 18 | 3 | } |
|
| 19 | |||
| 20 | 1 | public function __call($method, $args) |
|
| 21 | { |
||
| 22 | 1 | $this->data[] = [$args, $method]; |
|
| 23 | 1 | return $this; |
|
| 24 | } |
||
| 25 | |||
| 26 | 3 | public function __destruct() |
|
| 33 | } |
||
| 34 | } |