| 1 | <?php |
||
| 5 | class OrSpecification extends AbstractSpecification implements Specification |
||
| 6 | { |
||
| 7 | /** @var Specification */ |
||
| 8 | private $one; |
||
| 9 | |||
| 10 | /** @var Specification */ |
||
| 11 | private $other; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Constructor. |
||
| 15 | * |
||
| 16 | * @param Specification $one |
||
| 17 | * @param Specification $other |
||
| 18 | */ |
||
| 19 | 18 | public function __construct(Specification $one, Specification $other) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param $candidate |
||
| 27 | * |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | 12 | public function isSatisfiedBy($candidate) |
|
| 34 | } |
||
| 35 |