Pop\Mvc\Controller::setErrorAction PHP Метод

setErrorAction() публичный Метод

Set the error action
public setErrorAction ( string $error ) : Controller
$error string
Результат Controller
    public function setErrorAction($error)
    {
        $this->errorAction = $error;
        return $this;
    }

Usage Example

Пример #1
0
 public function testSetAndGetErrorAction()
 {
     $c = new Controller();
     $c->setErrorAction('myerror');
     $this->assertEquals('myerror', $c->getErrorAction());
 }