1 | <?php |
||
7 | abstract class AbstractHandler implements HandlerInterface |
||
8 | { |
||
9 | /** @var OperationInterface */ |
||
10 | protected $operation; |
||
11 | |||
12 | public function __construct(OperationInterface $operation) |
||
13 | { |
||
14 | $this->operation = $operation; |
||
15 | } |
||
16 | |||
17 | abstract public function apply($dataSource); |
||
18 | |||
19 | abstract public function getPriority(); |
||
20 | |||
21 | /** |
||
22 | * @return OperationInterface |
||
23 | */ |
||
24 | protected function getOperation() |
||
28 | } |