src/FactoryMuffin.php
protected function triggerCallback($model, $name)
    {
        $callback = $this->getDefinition($name)->getCallback();

        if ($callback) {
            $saved = $this->isPendingOrSaved($model);

            return call_user_func($callback, $model, $saved) !== false;
        }

        return false;
    }
protected function triggerCallback($model, $name)
    {
        $callback = $this->getDefinition($name)->getCallback();

        if ($callback) {
            $saved = $this->isPendingOrSaved($model);

            return call_user_func($callback, $model, $saved) !== false;
        }

        return false;
    }
protected function triggerCallback ( $ model , $ name ) { $ callback = $ this -> getDefinition ( $ name ) -> getCallback ( ) ; if ( $ callback ) { $ saved = $ this -> isPendingOrSaved ( $ model ) ; return call_user_func ( $ callback , $ model , $ saved ) !== false ; } return false ; }
Trigger the callback if we have one.

@param object $model The model instance.
@param string $name  The model definition name.

@return bool
Trigger the callback if we have one .