| 1 | <?php |
||
| 6 | class NodeBuilder |
||
| 7 | { |
||
| 8 | use StaticCreation; |
||
| 9 | |||
| 10 | const CONDITION_OPERATOR_ONE = ConfigOptions::CONFIG_NODE_CONDITION_ONE; |
||
| 11 | const CONDITION_OPERATOR_ALL = ConfigOptions::CONFIG_NODE_CONDITION_ALL; |
||
| 12 | |||
| 13 | private $conditions; |
||
| 14 | private $operator; |
||
| 15 | private $actions; |
||
| 16 | |||
| 17 | 1 | public function __construct() |
|
| 26 | |||
| 27 | 1 | public function addCondition(InputSourceBuilder $inputSourceBuilder, MatcherBuilder $matcherBuilder) |
|
| 35 | |||
| 36 | 1 | public function addActionIfConditionMatches($name, $argument) |
|
| 41 | |||
| 42 | 1 | public function addActionIfConditionDoesNotMatch($name, $argument) |
|
| 47 | |||
| 48 | 1 | public function withConditionOperator($operator) |
|
| 53 | |||
| 54 | 1 | public function build() |
|
| 63 | } |
||
| 64 |