/** * @return string */ public function getError() { return $this->requirement->getError($this->getModel(), $this->getProperty()); }
/** * @param Model $model * @param Property $property * @return string */ public function getError(Model $model, Property $property) { $error = parent::getError($model, $property); $error .= ' (' . $this->type . ')'; return $error; }