/
AleksWork
/
diary_plants
Обзор
Документация
Войти
/
AleksWork
/
diary_plants
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/Domain/Repository/StimulantRepositoryInterface.php
25 строк
1 KB
AlexeySerov
Add vote to stimulant managers
13 май 2026, 16:53
13 май 2026, 16:53
278cfc8
Код
Авторство
О чём код?
<?php namespace App\Domain\Repository; use DateTimeImmutable; use App\Domain\Entity\Stimulant; use App\Domain\Model\Stimulant\StimulantModel; interface StimulantRepositoryInterface { public function getStimulantsForDairy(int $groupId): array; public function getStimulantsPaginated(int $page, int $perPage): array; public function getStimulantsPaginatedByGroupId(int $page, int $perPage, ?int $groupId = null): array; public function find(int $stimulantId): ?Stimulant; public function findModel(int $stimulantId): ?StimulantModel; public function findAll(): array; public function findAllByGroupId(?int $groupId = null): array; public function findStimulantsByTitle(string $title): array; public function findStimulantsByManufacturer(string $manufacturer): array; public function findStimulantsByUseDate(DateTimeImmutable $date): array; public function create(Stimulant $stimulant): int; public function update(): void; public function remove(Stimulant $stimulant): void; public function toModel(Stimulant $stimulant, bool $addRelations = false): StimulantModel; }