Yoast\WP\SEO\Bulk_Editor\Domain\Posts

Posts_Page::__construct │ public │ Yoast 1.0

The constructor.

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

Хуков нет.

Возвращает

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

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

$Posts_Page = new Posts_Page();
$Posts_Page->__construct( $posts, $total, $page, $per_page );
$posts(Posts_List) (обязательный)
The posts on this page.
$total(int) (обязательный)
The total number of posts matching the query.
$page(int) (обязательный)
The page of results this represents, starting at 1.
$per_page(int) (обязательный)
The number of posts per page.

Код Posts_Page::__construct() Yoast 28.9

public function __construct( Posts_List $posts, int $total, int $page, int $per_page ) {
	$this->posts    = $posts;
	$this->total    = $total;
	$this->page     = $page;
	$this->per_page = $per_page;
}