Figure::tagName()   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 0
1
<?php
2
3
namespace hemio\html;
4
5
/**
6
 * The <code>figure</code> element represents a unit of content, optionally with
7
 * a caption, that is self-contained, that is typically referenced as a single
8
 * unit from the main flow of the document, and that can be moved away from the
9
 * main flow of the document without affecting the document’s meaning.
10
 *
11
 * @since version 1.0
12
 * @url http://www.w3.org/TR/html5/grouping-content.html#the-figure-element
13
 */
14
class Figure extends Abstract_\ElementContent
15
{
16
17
    use Trait_\DefaultElementContent;
18
19
    public static function tagName()
20
    {
21
        return 'figure';
22
    }
23
24
    public function blnIsBlock()
25
    {
26
        return true;
27
    }
28
}
29