Respect\Validation\Exceptions\ValidationException::getParams PHP Méthode

getParams() public méthode

public getParams ( )
    public function getParams()
    {
        return $this->params;
    }

Usage Example

Exemple #1
0
 private function overwriteExceptionParams(ValidationException $exception)
 {
     $params = [];
     foreach ($exception->getParams() as $key => $value) {
         if (in_array($key, ['template', 'translator'])) {
             continue;
         }
         $params[$key] = $this->baseKey;
     }
     $exception->configure($this->comparedKey, $params);
     return $exception;
 }