Code Duplication    Length = 16-21 lines in 3 locations

src/P.php 1 location

@@ 11-31 (lines=21) @@
8
 * @since version 1.0
9
 * @url http://www.w3.org/TR/html5/grouping-content.html#the-p-element
10
 */
11
class P extends Abstract_\ElementContent
12
{
13
14
    use Trait_\DefaultElementContent;
15
16
    public static function tagName()
17
    {
18
        return 'p';
19
    }
20
21
    function __construct(Interface_\HtmlCode $objChild = null)
22
    {
23
        if ($objChild)
24
            $this->addChild($objChild);
25
    }
26
27
    public function blnIsBlock()
28
    {
29
        return true;
30
    }
31
}
32

src/Td.php 1 location

@@ 11-26 (lines=16) @@
8
 * @since version 1.0
9
 * @url http://www.w3.org/TR/html5/tabular-data.html#the-td-element
10
 */
11
class Td extends Abstract_\ElementContent
12
{
13
14
    use Trait_\DefaultElementContent;
15
16
    public static function tagName()
17
    {
18
        return 'td';
19
    }
20
21
    function __construct(Interface_\HtmlCode $objContent = null)
22
    {
23
        if ($objContent !== null)
24
            $this->addChild($objContent);
25
    }
26
}
27

src/Th.php 1 location

@@ 11-26 (lines=16) @@
8
 * @since version 1.0
9
 * @url http://www.w3.org/TR/html5/tabular-data.html#the-th-element
10
 */
11
class Th extends Abstract_\ElementContent
12
{
13
14
    use Trait_\DefaultElementContent;
15
16
    public static function tagName()
17
    {
18
        return 'th';
19
    }
20
21
    function __construct(Interface_\HtmlCode $objContent = null)
22
    {
23
        if ($objContent !== null)
24
            $this->addChild($objContent);
25
    }
26
}
27