Exemple #1
0
 /**
  * Appends the error for reason $reason to the MessageStack.
  *
  * @param string $reason
  * @return bool
  */
 protected function error($reason)
 {
     $this->messageStack->append(new Failure($this->key, $reason, $this->getMessage($reason), $this->getMessageParameters()));
     return false;
 }