Completed
Pull Request — master (#152)
by Christopher
03:37
created

ODataProperty   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 35
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isNull() 0 4 2
1
<?php
2
3
namespace POData\ObjectModel;
4
5
/**
6
 * Class ODataProperty
7
 * Represents a property that comes under "m:properties" node or entry
8
 * or under complex property.
9
 */
10
class ODataProperty
11
{
12
    /**
13
     * The name of the property.
14
     *
15
     * @var string
16
     */
17
    public $name;
18
    /**
19
     * The property type name.
20
     *
21
     * @var string
22
     */
23
    public $typeName;
24
    /**
25
     * The property attribute extensions.
26
     *
27
     * @var XMLAttribute[]
28
     */
29
    public $attributeExtensions;
30
    /**
31
     * The value of the property.
32
     *
33
     * @var string|ODataPropertyContent|ODataBagContent
34
     */
35
    public $value;
36
37
    /**
38
     * @return bool|null
39
     */
40
    public function isNull()
41
    {
42
        return null === $this->value ? true : null;
43
    }
44
}
45