# wordpress-seo/28.5/src/task-list/domain/components/abstract-task-analyzer.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.5. 54 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.5/code/src/task-list/domain/components/abstract-task-analyzer.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.5/raw/src/task-list/domain/components/abstract-task-analyzer.php
- Modified: 2026-03-05T08:37:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/28.5/code/src/task-list/domain/components/abstract-task-analyzer.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Task_List\Domain\Components;

/**
 * Abstract class for a task analyzer.
 */
abstract class Abstract_Task_Analyzer implements Task_Analyzer_Interface {

	/**
	 * The title of the analyzer (e.g. "SEO analysis").
	 *
	 * @var string
	 */
	protected $title;

	/**
	 * The result of the analyzer.
	 *
	 * @var string
	 */
	protected $result;

	/**
	 * The human-readable label for the result (e.g. "Needs improvement").
	 *
	 * @var string
	 */
	protected $result_label;

	/**
	 * The description text explaining the result.
	 *
	 * @var string
	 */
	protected $result_description;

	/**
	 * Returns an array representation of the analyzer data.
	 *
	 * @return array<string, string> Returns in an array format.
	 */
	public function to_array(): array {
		return [
			'type'              => $this->get_type(),
			'title'             => $this->title,
			'result'            => $this->result,
			'resultLabel'       => $this->result_label,
			'resultDescription' => $this->result_description,
		];
	}
}

```
