Completed
Pull Request — master (#139)
by
unknown
10:24
created

Comment::getIsDeleted()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
    public function getId()
53
    {
54
        return $this->id;
55
    }
56
57
    /**
58
     * Retrieve the rootId property
59
     *
60
     * @return string|null
61
     */
62
    public function getRootId()
63
    {
64
        return $this->rootId;
65
    }
66
67
    /**
68
     * Retrieve the parentId property
69
     *
70
     * @return string|null
71
     */
72
    public function getParentId()
73
    {
74
        return $this->parentId;
75
    }
76
77
    /**
78
     * Retrieve the user property
79
     *
80
     * @return User|null
81
     */
82
    public function getUser()
83
    {
84
        return $this->user;
85
    }
86
87
    /**
88
     * Retrieve the title property
89
     *
90
     * @return string|null
91
     */
92
    public function getTitle()
93
    {
94
        return $this->title;
95
    }
96
97
    /**
98
     * Retrieve the body property
99
     *
100
     * @return string|null
101
     */
102
    public function getBody()
103
    {
104
        return $this->body;
105
    }
106
107
    /**
108
     * Retrieve the updateTimestamp property
109
     *
110
     * @return int|null
111
     */
112
    public function getUpdateTimestamp()
113
    {
114
        return $this->updateTimestamp;
115
    }
116
117
    /**
118
     * Retrieve the isValid property
119
     *
120
     * @return bool|null
121
     */
122
    public function getIsValid()
123
    {
124
        return $this->isValid;
125
    }
126
127
    /**
128
     * Retrieve the isDeleted property
129
     *
130
     * @return bool|null
131
     */
132
    public function getIsDeleted()
133
    {
134
        return $this->isDeleted;
135
    }
136
137
    /**
138
     * Retrieve the isBlocked property
139
     *
140
     * @return bool|null
141
     */
142
    public function getIsBlocked()
143
    {
144
        return $this->isBlocked;
145
    }
146
147
    /**
148
     * Retrieve the isSticky property
149
     *
150
     * @return bool|null
151
     */
152
    public function getIsSticky()
153
    {
154
        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
    public function getChildren()
173
    {
174
        return $this->children;
175
    }
176
}
177