1 | <?php |
||
13 | class Deleter implements DeleterInterface |
||
14 | { |
||
15 | use ErrorAwareTrait; |
||
16 | |||
17 | /** |
||
18 | * |
||
19 | * @var RepositoryInterface |
||
20 | */ |
||
21 | protected $repository; |
||
22 | |||
23 | /** |
||
24 | * @var EventManagerInterface |
||
25 | */ |
||
26 | protected $eventManager; |
||
27 | |||
28 | /** |
||
29 | * @param RepositoryInterface $repository |
||
30 | */ |
||
31 | public function __construct(RepositoryInterface $repository, EventManagerInterface $eventManager = null) |
||
36 | |||
37 | /** |
||
38 | * @param int $id |
||
39 | * @return EntityInterface|null |
||
40 | */ |
||
41 | public function delete($id) |
||
67 | |||
68 | /** |
||
69 | * @param array $filter |
||
70 | * @return EntityInterface[]|null |
||
71 | */ |
||
72 | public function deleteAll(array $filter = []) |
||
88 | } |
||
89 |