📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 13:41:12
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
plugins
/
wordpress-seo
/
src
/
ai
/
generator
/
domain
✏️
Editing: suggestions-bucket.php
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\AI\Generator\Domain; /** * Class Suggestion_Bucket * Represents a collection of Suggestion objects. */ class Suggestions_Bucket { /** * The suggestions. * * @var array<Suggestion> */ private $suggestions; /** * Class constructor. */ public function __construct() { $this->suggestions = []; } /** * Adds a suggestion to the bucket. * * @param Suggestion $suggestion The suggestion to add. * * @return void */ public function add_suggestion( Suggestion $suggestion ) { $this->suggestions[] = $suggestion; } /** * Returns the suggestions as an array. * * @return array<string> */ public function to_array() { return \array_map( static function ( $item ) { return $item->get_value(); }, $this->suggestions, ); } }
💾 Save Changes
❌ Cancel