Comment::getChildren()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Yandex\Market\Content\Models;
4
5
use Yandex\Common\Model;
6
7
class Comment extends Model
8
{
9
    protected $id = null;
10
11
    protected $rootId = null;
12
13
    protected $parentId = null;
14
15
    protected $user = null;
16
17
    protected $title = null;
18
19
    protected $body = null;
20
21
    protected $updateTimestamp = null;
22
23
    protected $isValid = null;
24
25
    protected $isDeleted = null;
26
27
    protected $isBlocked = null;
28
29
    protected $isSticky = null;
30
31
    protected $params = null;
32
33
    protected $children = null;
34
35
    protected $mappingClasses = [
36
        'user' => 'Yandex\Market\Content\Models\User',
37
        'children' => 'Yandex\Market\Content\Models\Comments'
38
    ];
39
40
    protected $propNameMap = [
41
        'valid' => 'isValid',
42
        'deleted' => 'isDeleted',
43
        'blocked' => 'isBlocked',
44
        'sticky' => 'isSticky'
45
    ];
46
47
    /**
48
     * Retrieve the id property
49
     *
50
     * @return string|null
51
     */
52 1
    public function getId()
53
    {
54 1
        return $this->id;
55
    }
56
57
    /**
58
     * Retrieve the rootId property
59
     *
60
     * @return string|null
61
     */
62 1
    public function getRootId()
63
    {
64 1
        return $this->rootId;
65
    }
66
67
    /**
68
     * Retrieve the parentId property
69
     *
70
     * @return string|null
71
     */
72 1
    public function getParentId()
73
    {
74 1
        return $this->parentId;
75
    }
76
77
    /**
78
     * Retrieve the user property
79
     *
80
     * @return User|null
81
     */
82 1
    public function getUser()
83
    {
84 1
        return $this->user;
85
    }
86
87
    /**
88
     * Retrieve the title property
89
     *
90
     * @return string|null
91
     */
92 1
    public function getTitle()
93
    {
94 1
        return $this->title;
95
    }
96
97
    /**
98
     * Retrieve the body property
99
     *
100
     * @return string|null
101
     */
102 1
    public function getBody()
103
    {
104 1
        return $this->body;
105
    }
106
107
    /**
108
     * Retrieve the updateTimestamp property
109
     *
110
     * @return int|null
111
     */
112 1
    public function getUpdateTimestamp()
113
    {
114 1
        return $this->updateTimestamp;
115
    }
116
117
    /**
118
     * Retrieve the isValid property
119
     *
120
     * @return bool|null
121
     */
122 1
    public function getIsValid()
123
    {
124 1
        return $this->isValid;
125
    }
126
127
    /**
128
     * Retrieve the isDeleted property
129
     *
130
     * @return bool|null
131
     */
132 1
    public function getIsDeleted()
133
    {
134 1
        return $this->isDeleted;
135
    }
136
137
    /**
138
     * Retrieve the isBlocked property
139
     *
140
     * @return bool|null
141
     */
142 1
    public function getIsBlocked()
143
    {
144 1
        return $this->isBlocked;
145
    }
146
147
    /**
148
     * Retrieve the isSticky property
149
     *
150
     * @return bool|null
151
     */
152 1
    public function getIsSticky()
153
    {
154 1
        return $this->isSticky;
155
    }
156
157
    /**
158
     * Retrieve the params property
159
     *
160
     * @return int|null
161
     */
162
    public function getParams()
163
    {
164
        return $this->params;
165
    }
166
167
    /**
168
     * Retrieve the children property
169
     *
170
     * @return Comments|null
171
     */
172 1
    public function getChildren()
173
    {
174 1
        return $this->children;
175
    }
176
}
177