| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/wordpress-seo/src/task-list/application/ |
Upload File : |
<?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();
}
}