| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Chain |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | */ |
||
| 10 | private $chainInfo = []; |
||
| 11 | |||
| 12 | 117 | public function startChain() |
|
| 13 | { |
||
| 14 | 117 | $this->chainInfo = []; |
|
| 15 | 117 | } |
|
| 16 | |||
| 17 | 116 | public function get($key) |
|
| 18 | { |
||
| 19 | 116 | return $this->chainInfo[$key] ?? null; |
|
| 20 | } |
||
| 21 | |||
| 22 | 118 | public function set($key, $value) |
|
| 25 | 118 | } |
|
| 26 | |||
| 27 | 102 | public function push($key, $value) |
|
| 30 | 102 | } |
|
| 31 | } |
||
| 32 |