| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 10 | trait ConstraintCheck |
||
| 11 | { |
||
| 12 | 1 | public function has(Constraint $constraint): self |
|
| 13 | { |
||
| 14 | 1 | Assert::assertThat($this->value, $constraint); |
|
| 15 | 1 | $this->resetMessage(); |
|
|
|
|||
| 16 | 1 | return $this; |
|
| 17 | } |
||
| 18 | |||
| 19 | 1 | public function is(Constraint $constraint): self |
|
| 22 | } |
||
| 23 | |||
| 24 | 1 | public function hasNot(Constraint $constraint): self |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | public function isNot(Constraint $constraint): self |
|
| 34 | } |
||
| 35 | } |
||
| 36 |