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

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

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

Метод Описание
__construct ( string | null $saveMethod = null, string | null $deleteMethod = null ) : void Create a new model store instance.

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

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

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

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

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

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

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

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

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