diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-18 00:08:23 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-18 00:10:03 +0200 |
| commit | 05e38eadbeb3de19e5b26003c2b401e00bb71df4 (patch) | |
| tree | cf48350b69cfce92de6f3a0e03eb0876931c7077 /vendor/doctrine/persistence/src/Persistence/ObjectRepository.php | |
| parent | 32843e50aa981f190bdb4fbc9adbeacc06fdf775 (diff) | |
| download | AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.gz AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.bz2 AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.zip | |
sortie de vendor du dépôt, oubli dans config-template.ini
Diffstat (limited to 'vendor/doctrine/persistence/src/Persistence/ObjectRepository.php')
| -rw-r--r-- | vendor/doctrine/persistence/src/Persistence/ObjectRepository.php | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/vendor/doctrine/persistence/src/Persistence/ObjectRepository.php b/vendor/doctrine/persistence/src/Persistence/ObjectRepository.php deleted file mode 100644 index a714731..0000000 --- a/vendor/doctrine/persistence/src/Persistence/ObjectRepository.php +++ /dev/null | |||
| @@ -1,73 +0,0 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\Persistence; | ||
| 6 | |||
| 7 | use UnexpectedValueException; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * Contract for a Doctrine persistence layer ObjectRepository class to implement. | ||
| 11 | * | ||
| 12 | * @template-covariant T of object | ||
| 13 | */ | ||
| 14 | interface ObjectRepository | ||
| 15 | { | ||
| 16 | /** | ||
| 17 | * Finds an object by its primary key / identifier. | ||
| 18 | * | ||
| 19 | * @param mixed $id The identifier. | ||
| 20 | * | ||
| 21 | * @return object|null The object. | ||
| 22 | * @psalm-return T|null | ||
| 23 | */ | ||
| 24 | public function find($id); | ||
| 25 | |||
| 26 | /** | ||
| 27 | * Finds all objects in the repository. | ||
| 28 | * | ||
| 29 | * @return array<int, object> The objects. | ||
| 30 | * @psalm-return T[] | ||
| 31 | */ | ||
| 32 | public function findAll(); | ||
| 33 | |||
| 34 | /** | ||
| 35 | * Finds objects by a set of criteria. | ||
| 36 | * | ||
| 37 | * Optionally sorting and limiting details can be passed. An implementation may throw | ||
| 38 | * an UnexpectedValueException if certain values of the sorting or limiting details are | ||
| 39 | * not supported. | ||
| 40 | * | ||
| 41 | * @param array<string, mixed> $criteria | ||
| 42 | * @param array<string, string>|null $orderBy | ||
| 43 | * @psalm-param array<string, 'asc'|'desc'|'ASC'|'DESC'>|null $orderBy | ||
| 44 | * | ||
| 45 | * @return array<int, object> The objects. | ||
| 46 | * @psalm-return T[] | ||
| 47 | * | ||
| 48 | * @throws UnexpectedValueException | ||
| 49 | */ | ||
| 50 | public function findBy( | ||
| 51 | array $criteria, | ||
| 52 | ?array $orderBy = null, | ||
| 53 | ?int $limit = null, | ||
| 54 | ?int $offset = null | ||
| 55 | ); | ||
| 56 | |||
| 57 | /** | ||
| 58 | * Finds a single object by a set of criteria. | ||
| 59 | * | ||
| 60 | * @param array<string, mixed> $criteria The criteria. | ||
| 61 | * | ||
| 62 | * @return object|null The object. | ||
| 63 | * @psalm-return T|null | ||
| 64 | */ | ||
| 65 | public function findOneBy(array $criteria); | ||
| 66 | |||
| 67 | /** | ||
| 68 | * Returns the class name of the object managed by the repository. | ||
| 69 | * | ||
| 70 | * @psalm-return class-string<T> | ||
| 71 | */ | ||
| 72 | public function getClassName(); | ||
| 73 | } | ||
