| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class Has implements Constraint |
||
| 12 | { |
||
| 13 | private string $relationship; |
||
| 14 | |||
| 15 | private ?Constraint $constraint; |
||
| 16 | |||
| 17 | public function __construct(string $relationship, ?Constraint $constraint = null) |
||
| 18 | { |
||
| 19 | $this->relationship = $relationship; |
||
| 20 | $this->constraint = $constraint; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function condition(Builder $builder): Builder |
||
| 30 | } |
||
| 31 | } |
||
| 32 |