League\FactoryMuffin\Stores\StoreInterface::isPending PHP Method

isPending() public method

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

Usage Example

Beispiel #1
0
 /**
  * Is the object saved or will be saved?
  *
  * @param object $model The model instance.
  *
  * @return bool
  */
 public function isPendingOrSaved($model)
 {
     return $this->store->isSaved($model) || $this->store->isPending($model);
 }