PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / src / task-list / application / tasks-repository.php

tasks-repository.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 28.5, at src/task-list/application/tasks-repository.php

37 lines 733 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Yoast\WP\SEO\Task_List\Application;
4
5 use Yoast\WP\SEO\Task_List\Infrastructure\Tasks_Collectors\Cached_Tasks_Collector;
6
7 /**
8 * The tasks repository.
9 */
10 class Tasks_Repository {
11
12 /**
13 * The tasks collector.
14 *
15 * @var Cached_Tasks_Collector
16 */
17 private $tasks_collector;
18
19 /**
20 * The constructor.
21 *
22 * @param Cached_Tasks_Collector $tasks_collector The tasks collector.
23 */
24 public function __construct( Cached_Tasks_Collector $tasks_collector ) {
25 $this->tasks_collector = $tasks_collector;
26 }
27
28 /**
29 * Returns tasks data.
30 *
31 * @return array<string, array<string, string|bool>> The tasks list.
32 */
33 public function get_tasks_data(): array {
34 return $this->tasks_collector->get_tasks_data();
35 }
36 }
37