mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°3526 - Clean up pass on UIBlockFactories
- Add PHPDoc - Remove (Object) return type hint on overloadable methods
This commit is contained in:
@@ -17,20 +17,23 @@ use Combodo\iTop\Application\UI\Base\UIBlock;
|
||||
* @author Eric Espie <eric.espie@combodo.com>
|
||||
* @package Combodo\iTop\Application\UI\Base\Layout\MultiColumn\Column
|
||||
* @since 3.0.0
|
||||
* @api
|
||||
*/
|
||||
class ColumnUIBlockFactory extends AbstractUIBlockFactory
|
||||
{
|
||||
/** @inheritDoc */
|
||||
public const TWIG_TAG_NAME = 'UIColumn';
|
||||
/** @inheritDoc */
|
||||
public const UI_BLOCK_CLASS_NAME = Column::class;
|
||||
|
||||
public static function MakeStandard(?string $sId = null): Column
|
||||
public static function MakeStandard(?string $sId = null)
|
||||
{
|
||||
$oInput = new Column($sId);
|
||||
|
||||
return $oInput;
|
||||
}
|
||||
|
||||
public static function MakeForBlock(UIBlock $oBlock, ?string $sId = null): Column
|
||||
public static function MakeForBlock(UIBlock $oBlock, ?string $sId = null)
|
||||
{
|
||||
$oInput = new Column($sId);
|
||||
$oInput->AddSubBlock($oBlock);
|
||||
|
||||
@@ -15,13 +15,16 @@ use Combodo\iTop\Application\UI\Base\AbstractUIBlockFactory;
|
||||
* @author Eric Espie <eric.espie@combodo.com>
|
||||
* @package Combodo\iTop\Application\UI\Base\Layout\MultiColumn
|
||||
* @since 3.0.0
|
||||
* @api
|
||||
*/
|
||||
class MultiColumnUIBlockFactory extends AbstractUIBlockFactory
|
||||
{
|
||||
/** @inheritDoc */
|
||||
public const TWIG_TAG_NAME = 'UIMultiColumn';
|
||||
/** @inheritDoc */
|
||||
public const UI_BLOCK_CLASS_NAME = MultiColumn::class;
|
||||
|
||||
public static function MakeStandard(?string $sId = null): MultiColumn
|
||||
public static function MakeStandard(?string $sId = null)
|
||||
{
|
||||
$oInput = new MultiColumn($sId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user