ad029f5c7d
Plumbing complementaire des outils MCP ajoutes en 99626b8 :
- declare findBy() sur Address/Contact/CommercialReport RepositoryInterface
(Prestataire l'avait deja) pour exposer la methode au contrat DDD
- bindings explicites des 4 repos dans services.yaml (cohrence avec
Client/Prospect, meme si Symfony auto-alias l'interface vers l'unique
implementation)
21 lines
490 B
PHP
21 lines
490 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Module\Directory\Domain\Repository;
|
|
|
|
use App\Module\Directory\Domain\Entity\Address;
|
|
|
|
interface AddressRepositoryInterface
|
|
{
|
|
public function findById(int $id): ?Address;
|
|
|
|
/**
|
|
* @param array<string, mixed> $criteria
|
|
* @param null|array<string, string> $orderBy
|
|
*
|
|
* @return Address[]
|
|
*/
|
|
public function findBy(array $criteria, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array;
|
|
}
|