Пример #1
0
 protected function addError(Error $error)
 {
     $this->errors->add($error);
 }
Пример #2
0
 /**
  * Get the checker's errors.
  *
  * @return Error[]
  */
 public function getErrors()
 {
     return $this->errors->getAll();
 }
Пример #3
0
 private function addNotEnoughParamsError(MethodCall $node, ReflectionClass $reflClass, $requiredParams)
 {
     $numArgs = count($node->args);
     $msg = "Method {$reflClass->getName()}::{$node->name}() requires {$requiredParams} arguments, {$numArgs} given";
     $this->errors->add(new Error($msg, $node));
 }
Пример #4
0
 private function addError(Error $error)
 {
     if ($this->errors) {
         $this->errors->add($error);
     }
 }