Yoast\WP\SEO\Schema_Aggregator\Application

Aggregate_Site_Schema_Command{}Yoast 1.0

Class that represents the command to aggregate site schema.

Хуков нет.

Использование

$Aggregate_Site_Schema_Command = new Aggregate_Site_Schema_Command();
// use class methods

Методы

  1. public __construct( int $page, int $per_page, string $post_type )
  2. public get_page_controls()

Код Aggregate_Site_Schema_Command{} Yoast 27.7

class Aggregate_Site_Schema_Command {

	/**
	 * The page controls.
	 *
	 * @var Page_Controls
	 */
	private $page_controls;

	/**
	 * The constructor.
	 *
	 * @param int    $page      The current page.
	 * @param int    $per_page  The number of items per page.
	 * @param string $post_type The post type to aggregate schema for.
	 */
	public function __construct( int $page, int $per_page, string $post_type ) {
		$this->page_controls = new Page_Controls( $page, $per_page, $post_type );
	}

	/**
	 * Gets the page controls.
	 *
	 * @return Page_Controls
	 */
	public function get_page_controls(): Page_Controls {
		return $this->page_controls;
	}
}