| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Services\Health_Check; |
| 4 |
|
| 5 |
use WPSEO_MyYoast_Api_Request; |
| 6 |
|
| 7 |
// phpcs:disable Yoast.NamingConventions.ObjectNameDepth.MaxExceeded |
| 8 |
/** |
| 9 |
* Creates WPSEO_MyYoast_Api_Request objects. |
| 10 |
*/ |
| 11 |
class MyYoast_Api_Request_Factory { |
| 12 |
|
| 13 |
/** |
| 14 |
* Creates a new WPSEO_MyYoast_API_Request. |
| 15 |
* |
| 16 |
* @param string $url The URL for the request. |
| 17 |
* @param array $args Optional arguments for the request. |
| 18 |
* @return WPSEO_MyYoast_Api_Request |
| 19 |
*/ |
| 20 |
public function create( $url, $args = [] ) { |
| 21 |
return new WPSEO_MyYoast_Api_Request( $url, $args ); |
| 22 |
} |
| 23 |
} |
| 24 |
|