| Total Complexity | 5 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | final class ConstraintCollection |
||
| 12 | { |
||
| 13 | private array $constraints = []; |
||
| 14 | |||
| 15 | public static function create(): self |
||
| 16 | { |
||
| 17 | return new static(); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function put(string $key, Closure $constraint): void |
||
| 23 | } |
||
| 24 | |||
| 25 | private function add(string $key, Closure $constraint): void |
||
| 32 | } |
||
| 33 | |||
| 34 | public function all(): array |
||
| 37 | } |
||
| 38 | } |
||
| 39 |