| 1 | <?php |
||
| 10 | class MultipleCondition implements ConditionInterface { |
||
| 11 | /** |
||
| 12 | * Array of conditions to check |
||
| 13 | * |
||
| 14 | * @var array<ConditionInterface> |
||
| 15 | */ |
||
| 16 | protected $conditions = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Constructor |
||
| 20 | * |
||
| 21 | * @param array $conditions |
||
| 22 | */ |
||
| 23 | public function __construct( $conditions ) { |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritDoc} |
||
| 34 | */ |
||
| 35 | 1 | public function isSatisfied( Request $request ) { |
|
| 43 | |||
| 44 | /** |
||
| 45 | * {@inheritDoc} |
||
| 46 | */ |
||
| 47 | 1 | public function getArguments( Request $request ) { |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Get all assigned conditions |
||
| 57 | * |
||
| 58 | * @return \WPEmerge\Routing\Conditions\ConditionInterface[] |
||
| 59 | */ |
||
| 60 | 1 | public function getConditions() { |
|
| 63 | } |
||
| 64 |