HtmlTag: add new helper class

This commit is contained in:
Thomas Gelf 2016-12-09 14:39:55 +01:00
parent f7f230c7a1
commit f3817b7d84

View file

@ -0,0 +1,28 @@
<?php
namespace Icinga\Module\Businessprocess\Html;
abstract class HtmlTag
{
/**
* @param $content
* @param Attributes|array $attributes
*
* @return Element
*/
public static function h1($content, $attributes = null)
{
return Element::create('h1', $attributes)->setContent($content);
}
/**
* @param $content
* @param Attributes|array $attributes
*
* @return Element
*/
public static function p($content, $attributes = null)
{
return Element::create('p', $attributes)->setContent($content);
}
}