PHP Класс League\FactoryMuffin\Stores\RepositoryStore

Автор: Graham Campbell ([email protected])
Автор: Michael Bodnarchuk ([email protected])
Наследование: extends AbstractStore, implements League\FactoryMuffin\Stores\StoreInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$storage object For Doctrine, this will be an EntityManager instance.

Открытые методы

Метод Описание
__construct ( object $storage, string | null $saveMethod = null, string | null $deleteMethod = null, $flushMethod = null ) : void Create a new repository store instance.
deleteSaved ( ) : void Delete all the saved models.

Защищенные методы

Метод Описание
delete ( object $model ) : boolean Delete our object from the db.
flush ( ) : boolean Flushes changes to storage.
save ( object $model ) : boolean Save our object to the db, and keep track of it.

Описание методов

__construct() публичный метод

Create a new repository store instance.
public __construct ( object $storage, string | null $saveMethod = null, string | null $deleteMethod = null, $flushMethod = null ) : void
$storage object
$saveMethod string | null
$deleteMethod string | null
Результат void

delete() защищенный метод

Delete our object from the db.
protected delete ( object $model ) : boolean
$model object The model instance.
Результат boolean

deleteSaved() публичный метод

Delete all the saved models.
public deleteSaved ( ) : void
Результат void

flush() защищенный метод

Flushes changes to storage.
protected flush ( ) : boolean
Результат boolean

save() защищенный метод

Save our object to the db, and keep track of it.
protected save ( object $model ) : boolean
$model object The model instance.
Результат boolean

Описание свойств

$storage защищенное свойство

For Doctrine, this will be an EntityManager instance.
protected object $storage
Результат object