# wordpress-seo/27.7/src/services/health-check/myyoast-api-request-factory.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 27.7. 23 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/27.7/code/src/services/health-check/myyoast-api-request-factory.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/27.7/raw/src/services/health-check/myyoast-api-request-factory.php
- Modified: 2022-09-01T06:45:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/27.7/code/src/services/health-check/myyoast-api-request-factory.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Services\Health_Check;

use WPSEO_MyYoast_Api_Request;

/**
 * Creates WPSEO_MyYoast_Api_Request objects.
 */
class MyYoast_Api_Request_Factory {

	/**
	 * Creates a new WPSEO_MyYoast_API_Request.
	 *
	 * @param string $url  The URL for the request.
	 * @param array  $args Optional arguments for the request.
	 * @return WPSEO_MyYoast_Api_Request
	 */
	public function create( $url, $args = [] ) {
		return new WPSEO_MyYoast_Api_Request( $url, $args );
	}
}

```
