/
AleksWork
/
diary_plants
Обзор
Документация
Войти
/
AleksWork
/
diary_plants
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/Domain/Repository/PestRepositoryInterface.php
25 строк
1020 B
AlexeySerov
Add vote to Pest managers
12 май 2026, 16:59
12 май 2026, 16:59
0cde7d6
Код
Авторство
О чём код?
<?php namespace App\Domain\Repository; use DateTimeImmutable; use App\Domain\Entity\Pest; use App\Domain\Model\Pest\PestModel; interface PestRepositoryInterface { public function getPestsForDairy(int $groupId): array; public function getPestsPaginated(int $page, int $perPage): array; public function getPestsPaginatedByGroupId(int $page, int $perPage, ?int $groupId = null): array; public function find(int $pestId): ?Pest; public function findModel(int $pestId): ?PestModel; public function findAll(): array; public function findAllByGroupId(?int $groupId = null): array; public function findPestsByTitle(string $title): array; public function findPestsByManufacturer(string $manufacturer): array; public function findPestsByUseDate(DateTimeImmutable $date): array; public function create(Pest $pest): int; public function update(): void; public function remove(Pest $pest): void; public function toModel(Pest $pest, bool $addRelations = false): PestModel; }