%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /dom495844/wp-content/plugins/wordpress-seo/src/bulk-editor/domain/posts/
Upload File :
Create Path :
Current File : /dom495844/wp-content/plugins/wordpress-seo/src/bulk-editor/domain/posts/posts-page.php

<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Bulk_Editor\Domain\Posts;

/**
 * Describes a single page of bulk editor posts together with the totals needed for pagination.
 */
class Posts_Page {

	/**
	 * The posts on this page.
	 *
	 * @var Posts_List
	 */
	private $posts;

	/**
	 * The total number of posts matching the query across all pages.
	 *
	 * @var int
	 */
	private $total;

	/**
	 * The page of results this represents, starting at 1.
	 *
	 * @var int
	 */
	private $page;

	/**
	 * The number of posts per page.
	 *
	 * @var int
	 */
	private $per_page;

	/**
	 * The constructor.
	 *
	 * @param Posts_List $posts    The posts on this page.
	 * @param int        $total    The total number of posts matching the query.
	 * @param int        $page     The page of results this represents, starting at 1.
	 * @param int        $per_page The number of posts per page.
	 */
	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;
	}

	/**
	 * Returns the total number of pages.
	 *
	 * @return int The total number of pages.
	 */
	public function get_total_pages(): int {
		if ( $this->per_page < 1 ) {
			return 0;
		}

		return (int) \ceil( $this->total / $this->per_page );
	}

	/**
	 * Parses the page to the expected key value representation.
	 *
	 * @return array<string, int|array<array<string, int|string>>> The page presented as the expected key value representation.
	 */
	public function to_array(): array {
		return [
			'posts'       => $this->posts->to_array(),
			'total'       => $this->total,
			'total_pages' => $this->get_total_pages(),
			'page'        => $this->page,
			'per_page'    => $this->per_page,
		];
	}
}

Zerion Mini Shell 1.0
Page not found - Broad Street Financial
[et_pb_section fb_built=”1″ theme_builder_area=”post_content” _builder_version=”4.20.0″ _module_preset=”default”][et_pb_row _builder_version=”4.20.0″ _module_preset=”default” theme_builder_area=”post_content”][et_pb_column _builder_version=”4.20.0″ _module_preset=”default” type=”4_4″ theme_builder_area=”post_content”][et_pb_text _builder_version=”4.20.0″ _module_preset=”default” theme_builder_area=”post_content” hover_enabled=”0″ sticky_enabled=”0″]

Page Not Found

Sorry the requested page you are looking for is missing or has been moved.

Please check out our site and see if you can find what you are looking for.

[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]