HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ubuntu-8gb-hel1-1 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /var/www/agighana.org_backup/SectionInterface.php
<?php

namespace Automattic\WooCommerce\Admin\Features\ProductBlockEditor\ProductTemplates;

use Automattic\WooCommerce\Admin\BlockTemplates\BlockContainerInterface;
use Automattic\WooCommerce\Admin\BlockTemplates\BlockInterface;


/**
 * Interface for section containers, which contain sub-sections and blocks.
 */
interface SectionInterface extends BlockContainerInterface {

	/**
	 * Adds a new sub-section to the section.
	 *
	 * @param array $block_config block config.
	 * @return SubsectionInterface new block sub-section.
	 */
	public function add_subsection( array $block_config ): SubsectionInterface;

	/**
	 * Adds a new block to the section.
	 *
	 * @param array $block_config block config.
	 */
	public function add_block( array $block_config ): BlockInterface;

	/**
	 * Adds a new sub-section to the section.
	 *
	 * @deprecated 8.6.0
	 *
	 * @param array $block_config The block data.
	 */
	public function add_section( array $block_config ): SubsectionInterface;
}