| 1 | <?php |
||
| 7 | class NodeBuilder |
||
| 8 | { |
||
| 9 | use StaticCreation; |
||
| 10 | |||
| 11 | const CONDITION_OPERATOR_ONE = ConfigOptions::CONFIG_NODE_CONDITION_ONE; |
||
| 12 | const CONDITION_OPERATOR_ALL = ConfigOptions::CONFIG_NODE_CONDITION_ALL; |
||
| 13 | |||
| 14 | private $conditions; |
||
| 15 | private $operator; |
||
| 16 | private $actions; |
||
| 17 | |||
| 18 | 1 | public function __construct() |
|
| 27 | |||
| 28 | 1 | public function addCondition(InputSourceBuilder $inputSourceBuilder, MatcherBuilder $matcherBuilder) |
|
| 37 | |||
| 38 | 1 | public function addActionIfConditionMatches($name, $argument) |
|
| 44 | |||
| 45 | 1 | public function addActionIfConditionDoesNotMatch($name, $argument) |
|
| 51 | |||
| 52 | 1 | public function withConditionOperator($operator) |
|
| 58 | |||
| 59 | 1 | public function build() |
|
| 68 | } |
||
| 69 |