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
Datei anzeigen Open project: zizaco/factory-muff

Public Methods

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

Protected Methods

Method 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 method

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

delete() protected method

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

save() protected method

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