| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function withUnmetSpecifications(Specification ...$specifications): self |
||
| 38 | { |
||
| 39 | $clone = new self(...$this->specifications); |
||
| 40 | foreach ($specifications as $specification) { |
||
| 41 | if (!in_array($specification, $clone->specifications, true)) { |
||
| 42 | $clone->specifications[] = $specification; |
||
| 43 | } |
||
| 44 | } |
||
| 45 | return $clone; |
||
| 46 | } |
||
| 47 | |||
| 74 |