| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class RuleTransformFactory extends AbstractFactory |
||
| 17 | { |
||
| 18 | /** @var RuleApplier */ |
||
| 19 | protected $ruleApplier; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * RuleTransformFactory constructor. |
||
| 23 | * |
||
| 24 | * @param string $operation |
||
| 25 | * @param string $class |
||
| 26 | * @param RuleApplier $ruleApplier |
||
| 27 | */ |
||
| 28 | public function __construct($operation, $class, RuleApplier $ruleApplier) |
||
| 29 | { |
||
| 30 | parent::__construct($operation, $class); |
||
| 31 | $this->ruleApplier = $ruleApplier; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | */ |
||
| 37 | public function build($operation, $options) |
||
| 38 | { |
||
| 39 | return $this->create($this->ruleApplier, $options['columns'], $options['add']); |
||
|
|
|||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | protected function configureValidator() |
||
| 53 | ]); |
||
| 54 | } |
||
| 55 | } |