Figure   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 2
c 2
b 1
f 0
lcom 0
cbo 2
dl 0
loc 15
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A tagName() 0 4 1
A blnIsBlock() 0 4 1
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