Canvas::blnIsBlock()   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>canvas</code> element represents a resolution-dependent bitmap canvas, which
7
  can be used for dynamically rendering of images such as game graphics,
8
  graphs, or other images.
9
 *
10
 * @since version 1.0
11
 * @url http://www.w3.org/TR/html5/embedded-content-0.html#the-canvas-element
12
 */
13
class Canvas extends Abstract_\ElementContent
14
{
15
16
    use Trait_\DefaultElementContent;
17
18
    public static function tagName()
19
    {
20
        return 'canvas';
21
    }
22
23
    public function blnIsBlock()
24
    {
25
        return true;
26
    }
27
}
28