PHP Interface League\FactoryMuffin\Stores\StoreInterface

Author: Graham Campbell ([email protected])
Author: Scott Robertson ([email protected])
Datei anzeigen Open project: zizaco/factory-muff Interface Usage Examples

Public Methods

Method Description
deleteSaved ( ) : void Delete all the saved models.
isPending ( object $model ) : boolean Is the model waiting to be saved?
isSaved ( object $model ) : boolean Is the model saved?
markPending ( object $model ) : void Mark a model as waiting to be saved.
markSaved ( object $model ) : void Mark a model as saved.
pending ( ) : object[] Return an array of models waiting to be saved.
persist ( object $model ) : void Save the model to the database.
saved ( ) : object[] Return an array of saved models.

Method Details

deleteSaved() public method

Delete all the saved models.
public deleteSaved ( ) : void
return void

isPending() public method

Is the model waiting to be saved?
public isPending ( object $model ) : boolean
$model object The model instance.
return boolean

isSaved() public method

Is the model saved?
public isSaved ( object $model ) : boolean
$model object The model instance.
return boolean

markPending() public method

Mark a model as waiting to be saved.
public markPending ( object $model ) : void
$model object The model instance.
return void

markSaved() public method

Mark a model as saved.
public markSaved ( object $model ) : void
$model object The model instance.
return void

pending() public method

Return an array of models waiting to be saved.
public pending ( ) : object[]
return object[]

persist() public method

Save the model to the database.
public persist ( object $model ) : void
$model object The model instance.
return void

saved() public method

Return an array of saved models.
public saved ( ) : object[]
return object[]