PHP Class League\FactoryMuffin\Stores\ModelStore

Author: Graham Campbell ([email protected])
Author: Scott Robertson ([email protected])
Author: Anderson Ribeiro e Silva ([email protected])
Inheritance: extends AbstractStore, implements League\FactoryMuffin\Stores\StoreInterface
Afficher le fichier Open project: zizaco/factory-muff

Méthodes publiques

Méthode Description
__construct ( string | null $saveMethod = null, string | null $deleteMethod = null ) : void Create a new model store instance.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

Create a new model store instance.
public __construct ( string | null $saveMethod = null, string | null $deleteMethod = null ) : void
$saveMethod string | null
$deleteMethod string | null
Résultat void

delete() protected méthode

Delete our object from the db.
protected delete ( object $model ) : mixed
$model object The model instance.
Résultat mixed

save() protected méthode

Save our object to the db, and keep track of it.
protected save ( object $model ) : mixed
$model object The model instance.
Résultat mixed