mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-24 16:49:34 -05:00
40 lines
845 B
PHP
40 lines
845 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Businessprocess\Html;
|
|
|
|
class Container extends BaseElement
|
|
{
|
|
/** @var string */
|
|
protected $contentSeparator = "\n";
|
|
|
|
/** @var string */
|
|
protected $tag = 'div';
|
|
|
|
protected function __construct()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @param Renderable|array|string $content
|
|
* @param Attributes|array $attributes
|
|
* @param string $tag
|
|
*
|
|
* @return static
|
|
*/
|
|
public static function create($attributes = null, $content = null, $tag = null)
|
|
{
|
|
$container = new static();
|
|
if ($content !== null) {
|
|
$container->setContent($content);
|
|
}
|
|
|
|
if ($attributes !== null) {
|
|
$container->setAttributes($attributes);
|
|
}
|
|
if ($tag !== null) {
|
|
$container->setTag($tag);
|
|
}
|
|
|
|
return $container;
|
|
}
|
|
}
|