public function getErrors() { $output = []; foreach ($this->invalid as $rule) { $output[] = $this->prepareError($rule); } return $output; }