403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/wordpress-seo/src/ai/content-planner/domain/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/wordpress-seo/src/ai/content-planner/domain/section-list.php
<?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 ];
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit