Automattic\WooCommerce\Internal\Api\Autogenerated\GraphQLTypes\Pagination

PageInfo::getpublic staticWC 1.0

Метод класса: PageInfo{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = PageInfo::get(): ObjectType;

Код PageInfo::get() WC 10.9.1

public static function get(): ObjectType {
	if ( null === self::$instance ) {
		self::$instance = new ObjectType(
			array(
				'name'   => 'PageInfo',
				'fields' => array(
					'has_next_page'     => array(
						'type' => Type::nonNull( Type::boolean() ),
					),
					'has_previous_page' => array(
						'type' => Type::nonNull( Type::boolean() ),
					),
					'start_cursor'      => array(
						'type' => Type::string(),
					),
					'end_cursor'        => array(
						'type' => Type::string(),
					),
				),
			)
		);
	}
	return self::$instance;
}