Completed
Push — master ( 91fdab...75a7b9 )
by
unknown
13:37
created

DashboardBundle/Entity/AnalyticsConfig.php (3 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Kunstmaan\DashboardBundle\Entity;
4
5
use Doctrine\ORM\Mapping as ORM;
6
use Kunstmaan\AdminBundle\Entity\AbstractEntity;
7
8
/**
9
 * @ORM\Table(name="kuma_analytics_config")
10
 * @ORM\Entity(repositoryClass="Kunstmaan\DashboardBundle\Repository\AnalyticsConfigRepository")
11
 */
12
class AnalyticsConfig extends AbstractEntity
13
{
14
15
    /**
16
     * @ORM\OneToMany(targetEntity="AnalyticsOverview", mappedBy="config", cascade={"persist", "remove"})
17
     */
18
    private $overviews;
19
20
    /**
21
     * @ORM\OneToMany(targetEntity="AnalyticsSegment", mappedBy="config", cascade={"persist", "remove"})
22
     */
23
    private $segments;
24
25
    /**
26
     * @var string
27
     *
28
     * @ORM\Column(name="name", type="text", nullable=true)
29
     */
30
    private $name = null;
31
32
    /**
33
     * @var string
34
     *
35
     * @ORM\Column(name="token", type="text", nullable=true)
36
     */
37
    private $token = null;
38
39
    /**
40
     * @var string
41
     *
42
     * @ORM\Column(name="account_id", type="string", nullable=true)
43
     */
44
    private $accountId = null;
45
46
    /**
47
     * @var string
48
     *
49
     * @ORM\Column(name="property_id", type="string", nullable=true)
50
     */
51
    private $propertyId = null;
52
53
    /**
54
     * @var string
55
     *
56
     * @ORM\Column(name="profile_id", type="string", nullable=true)
57
     */
58
    private $profileId = null;
59
60
    /**
61
     * @var \DateTime
62
     *
63
     * @ORM\Column(name="last_update", type="datetime", nullable=true)
64
     */
65
    private $lastUpdate = null;
66
67
    /**
68
     * @var boolean
69
     *
70
     * @ORM\Column(name="disable_goals", type="boolean")
71
     */
72
    private $disableGoals = false;
73
74
    /**
75
     * Set overviews
76
     *
77
     * @param array $overviews
78
     * @return AnalyticsDailyOverviews
0 ignored issues
show
Should the return type not be AnalyticsConfig?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
79
     */
80
    public function setOverviews($overviews)
81
    {
82
        $this->overviews = $overviews;
83
84
        return $this;
85
    }
86
87
    /**
88
     * Get overviews
89
     *
90
     * @return array
91
     */
92
    public function getOverviews()
93
    {
94
        return $this->overviews;
95
    }
96
97
    /**
98
     * Set segments
99
     *
100
     * @param array $segments
101
     * @return AnalyticsDailysegments
0 ignored issues
show
Should the return type not be AnalyticsConfig?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
102
     */
103
    public function setSegments($segments)
104
    {
105
        $this->segments = $segments;
106
107
        return $this;
108
    }
109
110
    /**
111
     * Get segments
112
     *
113
     * @return array
114
     */
115
    public function getSegments()
116
    {
117
        return $this->segments;
118
    }
119
120
    /**
121
     * Get name
122
     *
123
     * @return string
124
     */
125
    public function getName()
126
    {
127
        return $this->name;
128
    }
129
130
    /**
131
     * Set name
132
     *
133
     * @param string $name
134
     *
135
     * @return Analyticsname
0 ignored issues
show
Should the return type not be AnalyticsConfig?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
136
     */
137
    public function setName($name)
138
    {
139
        $this->name = $name;
140
141
        return $this;
142
    }
143
144
    /**
145
     * Get token
146
     *
147
     * @return string
148
     */
149
    public function getToken()
150
    {
151
        return $this->token;
152
    }
153
154
    /**
155
     * Set token
156
     *
157
     * @param string $token
158
     *
159
     * @return $this
160
     */
161
    public function setToken($token)
162
    {
163
        $this->token = $token;
164
165
        return $this;
166
    }
167
168
    /**
169
     * Get propertyId
170
     *
171
     * @return string
172
     */
173
    public function getPropertyId()
174
    {
175
        return $this->propertyId;
176
    }
177
178
    /**
179
     * Set propertyId
180
     *
181
     * @param string $propertyId
182
     *
183
     * @return $this
184
     */
185
    public function setPropertyId($propertyId)
186
    {
187
        $this->propertyId = $propertyId;
188
189
        return $this;
190
    }
191
192
    /**
193
     * Get accountId
194
     *
195
     * @return string
196
     */
197
    public function getAccountId()
198
    {
199
        return $this->accountId;
200
    }
201
202
    /**
203
     * Set accountId
204
     *
205
     * @param string $accountId
206
     *
207
     * @return $this
208
     */
209
    public function setAccountId($accountId)
210
    {
211
        $this->accountId = $accountId;
212
213
        return $this;
214
    }
215
216
    /**
217
     * Get profileId
218
     *
219
     * @return string
220
     */
221
    public function getProfileId()
222
    {
223
        return $this->profileId;
224
    }
225
226
    /**
227
     * Set profileId
228
     *
229
     * @param string $profileId
230
     *
231
     * @return $this
232
     */
233
    public function setProfileId($profileId)
234
    {
235
        $this->profileId = $profileId;
236
237
        return $this;
238
    }
239
240
    /**
241
     * Get lastUpdate
242
     *
243
     * @return \DateTime
244
     */
245
    public function getLastUpdate()
246
    {
247
        return $this->lastUpdate;
248
    }
249
250
    /**
251
     * Set lastUpdate
252
     *
253
     * @param \DateTime $lastUpdate
254
     *
255
     * @return $this
256
     */
257
    public function setLastUpdate($lastUpdate)
258
    {
259
        $this->lastUpdate = $lastUpdate;
260
261
        return $this;
262
    }
263
264
    /**
265
     * Get disableGoals
266
     *
267
     * @return boolean
268
     */
269
    public function getDisableGoals()
270
    {
271
        return $this->disableGoals;
272
    }
273
274
    /**
275
     * Set disableGoals
276
     *
277
     * @param boolean $disableGoals
278
     *
279
     * @return $this
280
     */
281
    public function setDisableGoals($disableGoals)
282
    {
283
        $this->disableGoals = $disableGoals;
284
285
        return $this;
286
    }
287
}
288