Test Failed
Push — master ( 793069...613e96 )
by Bálint
16:24
created

Date::getTypeCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace POData\Providers\Metadata\Type;
5
6
/**
7
 * Class Date
8
 * @package POData\Providers\Metadata\Type
9
 */
10
class Date extends DateTime
11
{
12
    /**
13
     * Gets the type code
14
     * Note: implementation of IType::getTypeCode
15
     *
16
     * @return TypeCode
17
     */
18
    public function getTypeCode()
19
    {
20
        return TypeCode::DATE;
0 ignored issues
show
Bug Best Practice introduced by
The expression return POData\Providers\...ata\Type\TypeCode::DATE returns the type integer which is incompatible with the documented return type POData\Providers\Metadata\Type\TypeCode.
Loading history...
21
    }
22
23
    /**
24
     * Gets full name of this type in EDM namespace
25
     * Note: implementation of IType::getFullTypeName
26
     * 
27
     * @return string
28
     */
29
    public function getFullTypeName()
30
    {
31
        return 'Edm.Date';
32
    }
33
}
34