# wordpress-seo/28.1/src/bulk-editor/domain/updates/post-update-collection.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.1. 38 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.1/code/src/bulk-editor/domain/updates/post-update-collection.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.1/raw/src/bulk-editor/domain/updates/post-update-collection.php
- Modified: 2026-07-07T11:18:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/28.1/code/src/bulk-editor/domain/updates/post-update-collection.php#L10-L20`.

```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 collection of post updates.
 */
class Post_Update_Collection {

	/**
	 * The post updates.
	 *
	 * @var array<Post_Update>
	 */
	private $updates = [];

	/**
	 * Adds a post update to the collection.
	 *
	 * @param Post_Update $update The post update to add.
	 *
	 * @return void
	 */
	public function add( Post_Update $update ): void {
		$this->updates[] = $update;
	}

	/**
	 * Returns the post updates in the collection.
	 *
	 * @return array<Post_Update> The post updates in the collection.
	 */
	public function get(): array {
		return $this->updates;
	}
}

```
