Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class FileWriterOperation extends AbstractChainOperation implements DataChainOperationInterface |
||
22 | { |
||
23 | /** @var FileWriterInterface */ |
||
24 | protected $writer; |
||
25 | |||
26 | protected string $fileName; |
||
27 | 1 | ||
28 | public function __construct(FileWriterInterface $writer, string $fileName) |
||
29 | 1 | { |
|
30 | 1 | $this->writer = $writer; |
|
31 | $this->fileName = $fileName; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | 1 | */ |
|
37 | public function processData(DataItemInterface $item, ExecutionContext $context): DataItemInterface |
||
42 | } |
||
43 | |||
44 | public function processStop(StopItem $stopItem, ExecutionContext $context): StopItem |
||
54 | } |
||
55 | } |
||
56 |