1 | <?php |
||
9 | class EntityService extends AbstractService implements EntityServiceInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var EntityRepositoryInterface |
||
13 | */ |
||
14 | protected $repository; |
||
15 | |||
16 | /** |
||
17 | * @param EntityRepositoryInterface $repository |
||
18 | */ |
||
19 | 2 | public function __construct(EntityRepositoryInterface $repository) |
|
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 2 | public function listAll() |
|
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | 1 | public function findById($id) |
|
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 1 | public function fetchById($id) |
|
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | 1 | public function save(EntityInterface $entity) |
|
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function removeById($id) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | public function remove(EntityInterface $entity) |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function removeAll() |
||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function listPaginated($page, $perPage) |
||
103 | |||
104 | /** |
||
105 | * {@inheritdoc} |
||
106 | */ |
||
107 | public function getTransactionManager() |
||
111 | |||
112 | /** |
||
113 | * @return EntityRepositoryInterface |
||
114 | */ |
||
115 | protected function getRepository() |
||
119 | |||
120 | /** |
||
121 | * @return string |
||
122 | */ |
||
123 | public function getEntityClass() |
||
127 | } |
||
128 |