📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 14:55:28
📂
/ (Root)
/
home
/
apkbfjox
/
stargame.pk
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
schema-aggregator
/
domain
📍 /home/apkbfjox/stargame.pk/wp-content/plugins/wordpress-seo/src/schema-aggregator/domain
🔄 Refresh
✏️
Editing: schema-piece-collection.php
Writable
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\Schema_Aggregator\Domain; /** * Type-safe collection for Schema_Piece objects. */ class Schema_Piece_Collection { /** * The schema pieces. * * @var array<Schema_Piece> */ private $pieces = []; /** * Class constructor. * * @param array<Schema_Piece> $pieces Optional array of Schema_Piece objects. */ public function __construct( array $pieces = [] ) { foreach ( $pieces as $piece ) { $this->add( $piece ); } } /** * Adds a schema piece to the collection. * * @param Schema_Piece $piece The schema piece to add. * * @return void */ public function add( Schema_Piece $piece ): void { $this->pieces[] = $piece; } /** * Gets all schema pieces as an array. * * @return array<Schema_Piece> The schema pieces. */ public function to_array(): array { return $this->pieces; } }
💾 Save Changes
❌ Cancel