From 9cd24617133a43d6c9337864440d7cf58078ff65 Mon Sep 17 00:00:00 2001 From: Rogerio Lino Date: Fri, 25 Oct 2024 11:18:30 -0300 Subject: [PATCH] feat: Find agendamento --- src/Repository/AgendamentoRepositoryInterface.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Repository/AgendamentoRepositoryInterface.php b/src/Repository/AgendamentoRepositoryInterface.php index 3afdcfd..5f65ff4 100644 --- a/src/Repository/AgendamentoRepositoryInterface.php +++ b/src/Repository/AgendamentoRepositoryInterface.php @@ -13,8 +13,11 @@ namespace Novosga\Repository; +use DateTimeInterface; use Doctrine\Persistence\ObjectRepository; use Novosga\Entity\AgendamentoInterface; +use Novosga\Entity\ServicoInterface; +use Novosga\Entity\UnidadeInterface; /** * AgendamentoRepositoryInterface @@ -25,4 +28,10 @@ */ interface AgendamentoRepositoryInterface extends ObjectRepository, BaseRepository { + /** @return AgendamentoInterface[] */ + public function findByUnidadeAndServicoAndData( + UnidadeInterface|int $unidade, + ServicoInterface|int $servico, + DateTimeInterface $data, + ): array; }