runner = $runner; $this->reports = $reports; $this->options_helper = $options_helper; $this->reports->set_test_identifier( $this->get_test_identifier() ); $this->set_runner( $this->runner ); } /** * Returns the WordPress-friendly health check result. * * @return string[] The WordPress-friendly health check result. */ protected function get_result() { if ( $this->runner->is_successful() ) { return $this->reports->get_success_result(); } return $this->reports->get_generation_failure_result( $this->runner->get_generation_failure_reason() ); } /** * Returns true when the llms.txt feature is disabled. * * @return bool Whether the health check should be excluded from the results. */ public function is_excluded() { return $this->options_helper->get( 'enable_llms_txt', false ) !== true; } }