generation_failure_reason = \get_option( Populate_File_Command_Handler::GENERATION_FAILURE_OPTION, '' ); } /** * Returns true if there is no generation failure reason. * * @return bool The boolean indicating if the health check was succesful. */ public function is_successful() { return $this->generation_failure_reason === ''; } /** * Returns the generation failure reason. * * @return string The boolean indicating if the health check was succesful. */ public function get_generation_failure_reason(): string { return $this->generation_failure_reason; } }