HTML5Trait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setHTML5() 0 4 1
A getHTML5() 0 4 1
1
<?php
2
3
namespace steevanb\SymfonyFormOptionsBuilder\OptionsBuilder\Behavior;
4
5
use steevanb\SymfonyFormOptionsBuilder\Behavior\OptionAccessorsTrait;
6
7
trait HTML5Trait
8
{
9
    use OptionAccessorsTrait;
10
11
    /**
12
     * @param bool $html5
13
     * @return $this
14
     * @link http://symfony.com/doc/current/reference/forms/types/date.html#html5
15
     */
16
    public function setHTML5($html5 = true)
17
    {
18
        return $this->setOption('html5', $html5);
19
    }
20
21
    /**
22
     * @return bool
23
     */
24
    public function getHTML5()
25
    {
26
        return $this->getOption('html5');
27
    }
28
}
29