Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2.0116 |
Changes | 0 |
1 | <?php |
||
47 | 1 | public function __construct(string $master, array $slaves) |
|
48 | { |
||
49 | 1 | $this->master = $master; |
|
50 | 1 | $this->slaves = $slaves; |
|
51 | |||
52 | 1 | $this->data = $slaves; |
|
53 | 1 | if (!in_array($master, $this->data)) { |
|
54 | $this->data[] = $master; |
||
55 | } |
||
56 | |||
57 | 1 | $this->all = CircularArray::fromArray($this->data); |
|
58 | 1 | } |
|
111 |