📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 20:57:00
📂
/ (Root)
/
home
/
apkbfjox
/
shamapk.com
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
ai
/
content-planner
/
domain
📍 /home/apkbfjox/shamapk.com/wp-content/plugins/wordpress-seo/src/ai/content-planner/domain
🔄 Refresh
✏️
Editing: section-list.php
Writable
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\AI\Content_Planner\Domain; /** * List of content outline sections. */ class Section_List { /** * The sections. * * @var array<Section> */ private $sections = []; /** * Adds a section to the list. * * @param Section $section A section. * * @return void */ public function add( Section $section ): void { $this->sections[] = $section; } /** * Returns this object in array format. * * @return array<string, array<array<string, string|array<string>|null>>> The sections as an array. */ public function to_array(): array { $result = []; foreach ( $this->sections as $section ) { $result[] = $section->to_array(); } return [ 'outline' => $result ]; } }
💾 Save Changes
❌ Cancel