Html::setHead()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace hemio\html;
4
5
/**
6
 * The <code>html</code> element represents the root of a document.
7
 *
8
 * @since version 1.0
9
 * @url http://www.w3.org/TR/html5/semantics.html#the-html-element
10
 */
11
class Html extends Abstract_\ElementContent
12
{
13
14
    use Trait_\DefaultElementContent;
15
16
    public static function tagName()
17
    {
18
        return 'html';
19
    }
20
21
    function __construct(Interface_\ContentModelText $objTitleContent)
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
22
    {
23
        $this['_HEAD'] = new Head($objTitleContent);
24
        $this['_BODY'] = new Body();
25
    }
26
27
    /**
28
     *
29
     * @return Head
30
     */
31
    public function getHead()
32
    {
33
        return $this['_HEAD'];
34
    }
35
36
    /**
37
     *
38
     * @param Head $objHead
39
     */
40
    public function setHead(Head $objHead)
41
    {
42
        $this['_HEAD'] = $objHead;
43
    }
44
45
    /**
46
     *
47
     * @return Body
48
     */
49
    public function getBody()
50
    {
51
        return $this['_BODY'];
52
    }
53
54
    /**
55
     *
56
     * @param Body $objBody
57
     */
58
    public function setBody(Body $objBody)
59
    {
60
        $this['_BODY'] = $objBody;
61
    }
62
63
    public function blnIsBlock()
64
    {
65
        return true;
66
    }
67
}
68