errors = $errors; } /** * @return bool * @since 101.0.7 */ public function isValid(): bool { return empty($this->errors); } /** * @return array * @since 101.0.7 */ public function getErrors(): array { return $this->errors; } }