summaryrefslogtreecommitdiff
path: root/vendor/doctrine/collections/src/Selectable.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
committerpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
commitbf6655a534a6775d30cafa67bd801276bda1d98d (patch)
treec6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/collections/src/Selectable.php
parent94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff)
downloadAppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/collections/src/Selectable.php')
-rw-r--r--vendor/doctrine/collections/src/Selectable.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/doctrine/collections/src/Selectable.php b/vendor/doctrine/collections/src/Selectable.php
new file mode 100644
index 0000000..5fa87cb
--- /dev/null
+++ b/vendor/doctrine/collections/src/Selectable.php
@@ -0,0 +1,32 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\Common\Collections;
6
7/**
8 * Interface for collections that allow efficient filtering with an expression API.
9 *
10 * Goal of this interface is a backend independent method to fetch elements
11 * from a collections. {@link Expression} is crafted in a way that you can
12 * implement queries from both in-memory and database-backed collections.
13 *
14 * For database backed collections this allows very efficient access by
15 * utilizing the query APIs, for example SQL in the ORM. Applications using
16 * this API can implement efficient database access without having to ask the
17 * EntityManager or Repositories.
18 *
19 * @psalm-template TKey as array-key
20 * @psalm-template-covariant T
21 */
22interface Selectable
23{
24 /**
25 * Selects all elements from a selectable that match the expression and
26 * returns a new collection containing these elements and preserved keys.
27 *
28 * @return ReadableCollection<mixed>&Selectable<mixed>
29 * @psalm-return ReadableCollection<TKey,T>&Selectable<TKey,T>
30 */
31 public function matching(Criteria $criteria);
32}