| 1 | <?php |
||
| 8 | class AndComposite implements ConditionInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var NamedCollection|ConditionInterface[] |
||
| 12 | */ |
||
| 13 | private $conditions; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param ConditionInterface $condition |
||
| 17 | */ |
||
| 18 | 2 | public function __construct(ConditionInterface $condition) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param ConditionInterface $condition |
||
| 26 | * |
||
| 27 | * @return $this |
||
| 28 | */ |
||
| 29 | 1 | public function addAnd(ConditionInterface $condition) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @see MetaborStd\Statemachine.ConditionInterface::checkCondition() |
||
| 38 | */ |
||
| 39 | 1 | public function checkCondition($subject, \ArrayAccess $context) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @see MetaborStd.NamedInterface::getName() |
||
| 52 | */ |
||
| 53 | 1 | public function getName() |
|
| 57 | } |
||
| 58 |