| 1 |
<?php |
| 2 |
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Given it's a very specific case. |
| 3 |
namespace Yoast\WP\SEO\Task_List\Domain\Tasks; |
| 4 |
|
| 5 |
/** |
| 6 |
* Represents a parent task. |
| 7 |
*/ |
| 8 |
interface Parent_Task_Interface extends Task_Interface { |
| 9 |
|
| 10 |
/** |
| 11 |
* Returns the child tasks associated with the task. |
| 12 |
* |
| 13 |
* @return Child_Task_Interface[] |
| 14 |
*/ |
| 15 |
public function get_child_tasks(): array; |
| 16 |
|
| 17 |
/** |
| 18 |
* Generates the child tasks dynamically. |
| 19 |
* |
| 20 |
* @return Child_Task_Interface[] The generated child tasks. |
| 21 |
*/ |
| 22 |
public function generate_child_tasks(): array; |
| 23 |
|
| 24 |
/** |
| 25 |
* Populates the child tasks. |
| 26 |
* |
| 27 |
* @return Child_Task_Interface[] The populated child tasks. |
| 28 |
*/ |
| 29 |
public function populate_child_tasks(): array; |
| 30 |
} |
| 31 |
|