ActiveInteractionBase.php
/**
     * This method will run on object initialize. It try to find a "prepareMethod" and if not simply run prepare()
     *
     * @param $params
     * @param $method
     * @return boolean
     */
This method will run on object initialize. It try to find a "prepareMethod" and if not simply run prepare()
@param $params
@param $method
@return boolean
This method will run on object initialize . It try to find a " prepareMethod " and if not simply run prepare () @param $params @param $method @return boolean
protected function runPrepare($params, $method = null)
    {
        if ($this->isPrepareWasRun) {
            return false;
        }
        if (is_null($method)) {
            $method = static::getPrepareMethodName();
            if (!method_exists($this, $method)) {
                $method = 'prepare';
                return call_user_func([$this, $method], $params);
            }
        }
        if (method_exists($this, $method)) {
            call_user_func_array([$this, $method], $params);
        }
        return $this->isPrepareWasRun = true;
    }
protected function runPrepare ( $ params , $ method = null ) { if ( $ this -> isPrepareWasRun ) { return false ; } if ( is_null ( $ method ) ) { $ method = static :: getPrepareMethodName ( ) ; if ( ! method_exists ( $ this , $ method ) ) { $ method = 'prepare' ; return call_user_func ( [ $ this , $ method ] , $ params ) ; } } if ( method_exists ( $ this , $ method ) ) { call_user_func_array ( [ $ this , $ method ] , $ params ) ; } return $ this -> isPrepareWasRun = true ; }
This method will run on object initialize.
This method will run on object initialize .