# wordpress-seo/trunk/src/task-list/application/tasks-repository.php

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/task-list/application/tasks-repository.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/trunk/raw/src/task-list/application/tasks-repository.php
- Modified: 2025-12-02T13:31:04+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/trunk/code/src/task-list/application/tasks-repository.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Task_List\Application;

use Yoast\WP\SEO\Task_List\Infrastructure\Tasks_Collectors\Cached_Tasks_Collector;

/**
 * The tasks repository.
 */
class Tasks_Repository {

	/**
	 * The tasks collector.
	 *
	 * @var Cached_Tasks_Collector
	 */
	private $tasks_collector;

	/**
	 * The constructor.
	 *
	 * @param Cached_Tasks_Collector $tasks_collector The tasks collector.
	 */
	public function __construct( Cached_Tasks_Collector $tasks_collector ) {
		$this->tasks_collector = $tasks_collector;
	}

	/**
	 * Returns tasks data.
	 *
	 * @return array<string, array<string, string|bool>> The tasks list.
	 */
	public function get_tasks_data(): array {
		return $this->tasks_collector->get_tasks_data();
	}
}

```
