/
AleksWork
/
diary_plants
Обзор
Документация
Войти
/
AleksWork
/
diary_plants
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/Domain/Repository/PlantRepositoryInterface.php
28 строк
1 KB
AlexeySerov
Add group voter for plant manager
05 май 2026, 17:31
05 май 2026, 17:31
e277c62
Код
Авторство
О чём код?
<?php namespace App\Domain\Repository; use App\Domain\Entity\Plant; use App\Domain\ValueObject\OId; use App\Domain\ValueObject\Price; use App\Domain\Model\Plant\PlantModel; interface PlantRepositoryInterface { public function getPlantsPaginated(int $page, int $perPage): array; public function getPlantsPaginatedByGroupId(int $page, int $perPage, ?int $groupId = null): array; public function getPlantsCount(): int; public function getPlantsForForm(?int $groupId = null): array; public function getPlantsForDiary(?int $groupId = null, ?bool $isSold = false): array; public function find(int $plantId): ?Plant; public function findModel(int $plantId): ?PlantModel; public function findAll(): array; public function findAllWithAttachments(?int $groupId = null): array; public function findPlantsByTitle(string $title): array; public function findPlantsByPrice(Price $price): array; public function findPlantByUUID(Oid $oid): ?PlantModel; public function create(Plant $plant): int; public function update(): void; public function remove(Plant $plant): void; public function toModel(Plant $plant, bool $addRelations = false): PlantModel; }