Completed
Push — 2.x ( 359f6e )
by Sullivan
16:25 queued 14:10
created

DateRangeFilter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFieldType() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Sonata package.
5
 *
6
 * (c) Thomas Rabaix <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sonata\DoctrineORMAdminBundle\Filter;
13
14
class DateRangeFilter extends AbstractDateFilter
15
{
16
    /**
17
     * This is a range filter
18
     * @var boolean
19
     */
20
    protected $range = true;
21
22
    /**
23
     * This filter has time
24
     * @var boolean
25
     */
26
    protected $time = false;
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getFieldType()
32
    {
33
        return $this->getOption('field_type', 'sonata_type_date_range');
34
    }
35
}
36