| 1 |
<?php |
| 2 |
|
| 3 |
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. |
| 4 |
namespace Yoast\WP\SEO\Task_List\Application\Endpoints; |
| 5 |
|
| 6 |
use Yoast\WP\SEO\Routes\Endpoint\Endpoints_Repository as Base_Endpoints_Repository; |
| 7 |
use Yoast\WP\SEO\Task_List\Infrastructure\Endpoints\Task_List_Endpoint_Interface; |
| 8 |
|
| 9 |
/** |
| 10 |
* Repository for endpoints. |
| 11 |
*/ |
| 12 |
class Endpoints_Repository extends Base_Endpoints_Repository { |
| 13 |
|
| 14 |
/** |
| 15 |
* Constructs the repository. |
| 16 |
* |
| 17 |
* @param Task_List_Endpoint_Interface ...$endpoints The endpoints to add to the repository. |
| 18 |
*/ |
| 19 |
public function __construct( Task_List_Endpoint_Interface ...$endpoints ) { |
| 20 |
parent::__construct( ...$endpoints ); |
| 21 |
} |
| 22 |
} |
| 23 |
|