public function rise(array $params, $line, $filename)
    {

        $this->invoke = [
            'MODEL_DOES_NOT_EXISTS' => function ($params, $filename, $line) {
                // set message for not existing column
                $this->message = "Model `" . $params[1] . "` not exists. File: " . $filename . " Line: " . $line;

            }];

        $this->invoke[current($params)]($params, $filename, $line);

        return $this;
    }
public function rise(array $params, $line, $filename)
    {

        $this->invoke = [
            'MODEL_DOES_NOT_EXISTS' => function ($params, $filename, $line) {
                // set message for not existing column
                $this->message = "Model `" . $params[1] . "` not exists. File: " . $filename . " Line: " . $line;

            }];

        $this->invoke[current($params)]($params, $filename, $line);

        return $this;
    }
public function rise ( array $ params , $ line , $ filename ) { $ this -> invoke = [ 'MODEL_DOES_NOT_EXISTS' => function ( $ params , $ filename , $ line ) { // set message for not existing column $ this -> message = "Model `" . $ params [ 1 ] . "` not exists. File: " . $ filename . " Line: " . $ line ; } ] ; $ this -> invoke [ current ( $ params ) ] ( $ params , $ filename , $ line ) ; return $ this ; }
Rise error message for Model Exceptions

@param  array                               $params   message params
@param  int                                 $line     error line
@param  string                              $filename file error
@return \Searcher\Searcher\Exceptions\Model
Rise error message for Model Exceptions