Completed
Push — 2.x ( 359f6e )
by Sullivan
14:45
created

DateTimeRangeFilter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
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 24
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 DateTimeRangeFilter extends AbstractDateFilter
15
{
16
    /**
17
     * This Filter allows filtering by time
18
     *
19
     * @var boolean
20
     */
21
    protected $time = true;
22
23
    /**
24
     * This is a range filter
25
     *
26
     * @var boolean
27
     */
28
    protected $range = true;
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function getFieldType()
34
    {
35
        return $this->getOption('field_type', 'sonata_type_datetime_range');
36
    }
37
}
38