%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php

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

/**
 * This class describes a title, description and/or focus keyphrase update for a single post.
 */
class Post_Update {

	/**
	 * The ID of the post to update.
	 *
	 * @var int
	 */
	private $post_id;

	/**
	 * The new title, or null when the title should be left untouched.
	 *
	 * @var string|null
	 */
	private $title;

	/**
	 * The new description, or null when the description should be left untouched.
	 *
	 * @var string|null
	 */
	private $description;

	/**
	 * The new focus keyphrase, or null when the focus keyphrase should be left untouched.
	 *
	 * @var string|null
	 */
	private $focus_keyphrase;

	/**
	 * The constructor.
	 *
	 * @param int         $post_id         The ID of the post to update.
	 * @param string|null $title           The new title, or null to leave the title untouched.
	 * @param string|null $description     The new description, or null to leave the description untouched.
	 * @param string|null $focus_keyphrase The new focus keyphrase, or null to leave the focus keyphrase untouched.
	 */
	public function __construct( int $post_id, ?string $title, ?string $description, ?string $focus_keyphrase ) {
		$this->post_id         = $post_id;
		$this->title           = $title;
		$this->description     = $description;
		$this->focus_keyphrase = $focus_keyphrase;
	}

	/**
	 * Gets the ID of the post to update.
	 *
	 * @return int The ID of the post to update.
	 */
	public function get_post_id(): int {
		return $this->post_id;
	}

	/**
	 * Gets the new title.
	 *
	 * @return string|null The new title, or null when the title should be left untouched.
	 */
	public function get_title(): ?string {
		return $this->title;
	}

	/**
	 * Gets the new description.
	 *
	 * @return string|null The new description, or null when the description should be left untouched.
	 */
	public function get_description(): ?string {
		return $this->description;
	}

	/**
	 * Gets the new focus keyphrase.
	 *
	 * @return string|null The new focus keyphrase, or null when the focus keyphrase should be left untouched.
	 */
	public function get_focus_keyphrase(): ?string {
		return $this->focus_keyphrase;
	}

	/**
	 * Whether this update carries a title. An empty string is a value: it clears the title.
	 *
	 * @return bool Whether this update carries a title.
	 */
	public function has_title(): bool {
		return $this->title !== null;
	}

	/**
	 * Whether this update carries a description. An empty string is a value: it clears the description.
	 *
	 * @return bool Whether this update carries a description.
	 */
	public function has_description(): bool {
		return $this->description !== null;
	}

	/**
	 * Whether this update carries a focus keyphrase. An empty string is a value: it clears the focus keyphrase.
	 *
	 * @return bool Whether this update carries a focus keyphrase.
	 */
	public function has_focus_keyphrase(): bool {
		return $this->focus_keyphrase !== null;
	}
}

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]