public function getErrors() { if (empty($this->errors)) { $this->checkRequirements(); } return $this->errors; }