Completed
Branch master (5acf81)
by Steevan
04:21
created

DateOptionsBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getBuilderType() 0 4 1
1
<?php
2
3
namespace steevanb\SymfonyFormOptionsBuilder\OptionsBuilder;
4
5
use Symfony\Component\Form\Extension\Core\Type\DateType;
6
7
class DateOptionsBuilder extends AbstractOptionsBuilder
8
{
9
    use Behavior\DateTimeCommonTrait;
10
    use Behavior\DateTypeTrait;
11
    use Behavior\HTML5Trait;
12
13
    const WIDGET_CHOICE = 'choice';
14
    const WIDGET_TEXT = 'text';
15
    const WIDGET_SINGLE_TEXT = 'single_text';
16
    /**
17
     * @return string
18
     */
19
    public static function getBuilderType()
20
    {
21
        return DateType::class;
22
    }
23
24
}
25