<?php

/**
 * @copyright   Copyright (C) 2010-2024 Combodo SAS
 * @license     http://opensource.org/licenses/AGPL-3.0
 */

namespace Combodo\iTop\Application\UI\Base\Component\CollapsibleSection;

use Combodo\iTop\Application\UI\Base\AbstractUIBlockFactory;

/**
 * Class CollapsibleSectionUIBlockFactory
 *
 * @author Pierre Goiffon <pierre.goiffon@combodo.com>
 * @package UIBlockAPI
 * @api
 * @since 3.0.0
 */
class CollapsibleSectionUIBlockFactory extends AbstractUIBlockFactory
{
	/** @inheritDoc */
	public const TWIG_TAG_NAME = 'UICollapsibleSection';
	/** @inheritDoc */
	public const UI_BLOCK_CLASS_NAME = CollapsibleSection::class;

	/**
	 * @api
	 * @param string $sTitle
	 * @param string|null $sId
	 *
	 * @return \Combodo\iTop\Application\UI\Base\Component\CollapsibleSection\CollapsibleSection
	 */
	public static function MakeStandard(string $sTitle, ?string $sId = null)
	{
		return new CollapsibleSection($sTitle, [], $sId);
	}
}
