League\FactoryMuffin\Stores\StoreInterface::isPending PHP Méthode

isPending() public méthode

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

Usage Example

 /**
  * 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);
 }