blob: 0001e12b738476cb1775aac920dfb17172702402 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
namespace gipfl\IcingaWeb2;
use ipl\Html\BaseHtmlElement;
class Icon extends BaseHtmlElement
{
protected $tag = 'i';
public function __construct($name, $attributes = null)
{
$this->setAttributes($attributes);
$this->getAttributes()->add('class', array('icon', 'icon-' . $name));
}
/**
* @param string $name
* @param array $attributes
*
* @return static
*/
public static function create($name, array $attributes = null)
{
return new static($name, $attributes);
}
}
|