| 1 | <?php |
||
| 5 | class ResolutionConstraintCollection |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var ResolutionConstraint[] |
||
| 9 | */ |
||
| 10 | private $constraints; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param ResolutionConstraint[] $constraints |
||
| 14 | */ |
||
| 15 | public function __construct(array $constraints) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param int $type |
||
| 22 | * @param array $withParameters |
||
| 23 | * |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | public function hasConstraint($type, array $withParameters = []) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param int $type |
||
| 33 | * @param array $withParameters |
||
| 34 | * |
||
| 35 | * @return ResolutionConstraint[] |
||
| 36 | */ |
||
| 37 | public function getConstraints($type, array $withParameters = []) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param ResolutionConstraint $constraint |
||
| 51 | * @param array $parameters |
||
| 52 | * |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | private function constraintHasParameters(ResolutionConstraint $constraint, array $parameters) |
||
| 68 | } |
||
| 69 |