@@ -20,12 +20,21 @@ |
||
| 20 | 20 | { |
| 21 | 21 | public function organizationOfId(OrganizationId $id); |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @return Organization |
|
| 25 | + */ |
|
| 23 | 26 | public function organizationOfSlug(Slug $slug); |
| 24 | 27 | |
| 25 | 28 | public function query($specification); |
| 26 | 29 | |
| 30 | + /** |
|
| 31 | + * @return void |
|
| 32 | + */ |
|
| 27 | 33 | public function persist(Organization $organization); |
| 28 | 34 | |
| 35 | + /** |
|
| 36 | + * @return void |
|
| 37 | + */ |
|
| 29 | 38 | public function remove(Organization $organization); |
| 30 | 39 | |
| 31 | 40 | public function count($specification) : int; |
@@ -19,7 +19,15 @@ |
||
| 19 | 19 | |
| 20 | 20 | interface OrganizationSpecificationFactory |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @param null|string $name |
|
| 24 | + * |
|
| 25 | + * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Organization\DoctrineORMFilterableSpecification |
|
| 26 | + */ |
|
| 22 | 27 | public function buildFilterableSpecification($name, UserId $userId, int $offset = 0, int $limit = -1); |
| 23 | 28 | |
| 29 | + /** |
|
| 30 | + * @return \Kreta\TaskManager\Infrastructure\Persistence\Doctrine\ORM\Organization\DoctrineORMBySlugSpecification |
|
| 31 | + */ |
|
| 24 | 32 | public function buildBySlugSpecification(Slug $slug); |
| 25 | 33 | } |