From f3817b7d84f6612a11225a82d1314562f237d05d Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 9 Dec 2016 14:39:55 +0100 Subject: [PATCH] HtmlTag: add new helper class --- library/Businessprocess/Html/HtmlTag.php | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 library/Businessprocess/Html/HtmlTag.php diff --git a/library/Businessprocess/Html/HtmlTag.php b/library/Businessprocess/Html/HtmlTag.php new file mode 100644 index 0000000..da49cce --- /dev/null +++ b/library/Businessprocess/Html/HtmlTag.php @@ -0,0 +1,28 @@ +setContent($content); + } + + /** + * @param $content + * @param Attributes|array $attributes + * + * @return Element + */ + public static function p($content, $attributes = null) + { + return Element::create('p', $attributes)->setContent($content); + } +}