| @@ 73-81 (lines=9) @@ | ||
| 70 | /** |
|
| 71 | * {@inheritdoc} |
|
| 72 | */ |
|
| 73 | public function findAll($limit = null) |
|
| 74 | { |
|
| 75 | return array_map( |
|
| 76 | function (TaskEntity $entity) { |
|
| 77 | return $entity->getTask(); |
|
| 78 | }, |
|
| 79 | $this->taskRepository->findBy([], null, $limit) |
|
| 80 | ); |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * {@inheritdoc} |
|
| @@ 86-94 (lines=9) @@ | ||
| 83 | /** |
|
| 84 | * {@inheritdoc} |
|
| 85 | */ |
|
| 86 | public function findByKey($key, $limit = null) |
|
| 87 | { |
|
| 88 | return array_map( |
|
| 89 | function (TaskEntity $entity) { |
|
| 90 | return $entity->getTask(); |
|
| 91 | }, |
|
| 92 | $this->taskRepository->findBy(['key' => $key], null, $limit) |
|
| 93 | ); |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * {@inheritdoc} |
|