Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class SplitItemFactory extends AbstractFactory |
||
18 | { |
||
19 | |||
20 | |||
21 | public function __construct(string $operation, string $class) |
||
22 | { |
||
23 | parent::__construct($operation, $class); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @inheritdoc |
||
28 | */ |
||
29 | public function build(string $operation, array $options): ChainOperationInterface |
||
30 | { |
||
31 | return $this->create($options['singleElement'] ?? true, $options['keys']); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | protected function configureValidator(): Constraint |
||
45 | ]); |
||
46 | } |
||
47 | } |