Completed
Push — master ( 8b40f4...1a4202 )
by Peter
13:15
created

TimeIntervalType::convertToPHPValue()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 12
Code Lines 7

Duplication

Lines 12
Ratio 100 %

Importance

Changes 0
Metric Value
dl 12
loc 12
rs 9.4285
c 0
b 0
f 0
cc 3
eloc 7
nc 3
nop 2
1
<?php
2
3
/**
4
 * GpsLab component.
5
 *
6
 * @author    Peter Gribanov <[email protected]>
7
 * @copyright Copyright (c) 2016, Peter Gribanov
8
 * @license   http://opensource.org/licenses/MIT
9
 */
10
11
namespace GpsLab\Component\Interval\Persistence\Doctrine\DBAL\Types;
12
13
use GpsLab\Component\Interval\Time\TimeInterval;
14
15
class TimeIntervalType extends BaseType
16
{
17
    /**
18
     * @return string
19
     */
20
    protected function getIntervalClass()
21
    {
22
        return TimeInterval::class;
23
    }
24
}
25