Index

iRepository

MMO\core\interfaces · 1 symbol · generated 30 Sep 2026

interface

iRepository

iRepository.php:7
interface MMO\core\interfaces\iRepository extends MMO\core\interfaces\iIdentifiable
Namespace
MMO\core\interfaces
Implements
iIdentifiable

Methods11

createCollection($name, $entityClass, $collectionId)

abstractiRepository.php:12
abstract function createCollection(string $name, string $entityClass, ?string $collectionId = null): MMO\core\interfaces\iCollection
$namestring
$entityClassstring
$collectionId = nullnull | string
returnsiCollection

createEntity($class, $data, $collection)

abstractiRepository.php:18
abstract function createEntity( string $class, array $data, ?MMO\core\interfaces\iCollection $collection = null ): MMO\core\interfaces\iEntity
$classstring
$dataarray
$collection = nullnull | iCollection
returnsiEntity

getCollectionByClass($entityClass, $allowChildClass)

abstractiRepository.php:32
abstract function getCollectionByClass(string $entityClass, bool $allowChildClass = true): ?MMO\core\interfaces\iCollection
$entityClassstring
$allowChildClass = trueboolalso match a collection of a subclass of $entityClass
returnsnull | iCollectionthe collection holding $entityClass

getCollectionName($collection)

abstractiRepository.php:25
abstract function getCollectionName(MMO\core\interfaces\iCollection $collection): ?string
$collectioniCollection
returnsnull | stringthe name $collection has in this repository

getCollections()

abstractiRepository.php:23
abstract function getCollections(): array
returnsarrayiCollection> its collections, by name

getDistinct($collection, $key)

abstractiRepository.php:40
abstract function getDistinct(string $collection, string $key): array
$collectionstringthe collection's name
$keystringthe property (a /-separated path for a nested one)
returnsarrayevery value it takes, once, in ascending order

searchText($query, $text)

abstractiRepository.php:34
abstract function searchText( MMO\core\interfaces\iCollection|MMO\core\entities\Query|string $query, string $text ): array
$queryiCollection | Query | string
$textstring
returnsarraythe entities whose searchable text matches $text
Inherited members (1)
MethodsDeclared byDescription
uid()iIdentifiableGet the unique identifier