Test Failed
Push — master ( fe37af...35d2a4 )
by Bálint
06:06
created

ODataEntry::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 2
c 1
b 1
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace POData\ObjectModel;
5
6
/**
7
 * Class ODataEntry
8
 * @package POData\ObjectModel
9
 */
10
class ODataEntry
11
{
12
    /**
13
     *
14
     * Entry id
15
     * @var string
16
     */
17
    public $id;
18
    /**
19
     *
20
     * Entry Self Link
21
     * @var string
22
     */
23
    public $selfLink;
24
    /**
25
     *
26
     * Entry title
27
     * @var string
28
     */
29
    public $title;
30
    /**
31
     * Entry Edit Link
32
     * @var string
33
     */
34
    public $editLink;
35
    /**
36
     *
37
     * Entry Type. This become the value of term attribute of Category element
38
     * @var string
39
     */
40
    public $type;
41
    /**
42
     *
43
     * Instance to hold entity properties.
44
     * Properties corresponding to "m:properties" under content element
45
     * in the case of Non-MLE. For MLE "m:properties" is direct child of entry
46
     * @var ODataPropertyContent
47
     */
48
    public $propertyContent;
49
    /**
50
     *
51
     * Collection of entry media links (Named Stream Links)
52
     * @var array<ODataMediaLink>
53
     */
54
    public $mediaLinks = array();
55
    /**
56
     *
57
     * media link entry (MLE Link)
58
     * @var ODataMediaLink
59
     */
60
    public $mediaLink;
61
    /**
62
     *
63
     * Collection of navigation links (can be expanded)
64
     * @var array<ODataLink>
65
     */
66
    public $links = array();
67
    /**
68
     *
69
     * Entry ETag
70
     * @var string
71
     */
72
    public $eTag;
73
74
    /**
75
     *
76
     * True if this is a media link entry.
77
     * @var boolean
78
     */
79
    public $isMediaLinkEntry;
80
81
    /**
82
     * The name of the resource set this entry belongs to, use in metadata output
83
     * @var string
84
     */
85
    public $resourceSetName;
86
87
    /**
88
     * Array of custom properties to serialize in key => value format.
89
     * @var ODataPropertyContent
90
     */
91
    public $customProperties = null;
92
93
    public function __construct()
94
    {
95
        $this->customProperties = new ODataPropertyContent();
96
        $this->propertyContent = new ODataPropertyContent();
97
    }
98
}
99