Files
Chamilo/vendor/doctrine/persistence/lib/Doctrine/Persistence/ObjectRepository.php
T
Xes 73154ae174
Behat tests 1.11.x 🐞 / PHP 7.4 Test on ubuntu-latest (push) Canceled after 0s
PHP-CS-Fixer / composer_install (7.4) (push) Canceled after 0s
Chamilo 1.11.40 (ZIP oficial v1.11.40)
Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip
sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439
Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
2026-08-06 17:59:45 +02:00

65 lines
1.6 KiB
PHP

<?php
namespace Doctrine\Persistence;
use UnexpectedValueException;
use function interface_exists;
/**
* Contract for a Doctrine persistence layer ObjectRepository class to implement.
*/
interface ObjectRepository
{
/**
* Finds an object by its primary key / identifier.
*
* @param mixed $id The identifier.
*
* @return object|null The object.
*/
public function find($id);
/**
* Finds all objects in the repository.
*
* @return object[] The objects.
*/
public function findAll();
/**
* Finds objects by a set of criteria.
*
* Optionally sorting and limiting details can be passed. An implementation may throw
* an UnexpectedValueException if certain values of the sorting or limiting details are
* not supported.
*
* @param mixed[] $criteria
* @param string[]|null $orderBy
* @param int|null $limit
* @param int|null $offset
*
* @return object[] The objects.
*
* @throws UnexpectedValueException
*/
public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null);
/**
* Finds a single object by a set of criteria.
*
* @param mixed[] $criteria The criteria.
*
* @return object|null The object.
*/
public function findOneBy(array $criteria);
/**
* Returns the class name of the object managed by the repository.
*
* @return string
*/
public function getClassName();
}
interface_exists(\Doctrine\Common\Persistence\ObjectRepository::class);