/
AleksWork
/
diary_plants
Обзор
Документация
Войти
/
AleksWork
/
diary_plants
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/Domain/Repository/MarkerRepositoryInterface.php
24 строки
1 KB
AlexeySerov
Add vote to marker managers
12 май 2026, 14:26
12 май 2026, 14:26
bebd506
Код
Авторство
О чём код?
<?php namespace App\Domain\Repository; use App\Domain\Entity\Marker; use App\Domain\Model\Marker\MarkerModel; interface MarkerRepositoryInterface { public function getMarkersPaginated(int $page, int $perPage): array; public function getMarkersPaginatedByGroupId(int $page, int $perPage, ?int $groupId = null): array; public function getMarkersForForm(?int $groupId = null, ?string $type = null): array; public function getMarkersForDairy(?int $groupId = null, ?string $type = null): array; public function find(int $markerId): ?Marker; public function findModel(int $markerId): ?MarkerModel; public function findAll(): array; public function findAllByGroupId(?int $groupId = null): array; public function findMarkersByLetter(string $letter): array; public function findMarkersByColor(string $color): array; public function create(Marker $marker): int; public function update(): void; public function remove(Marker $marker): void; public function toModel(Marker $marker, bool $addRelations = false): MarkerModel; }