Completed
Push — 5.0 ( 49f77a...62cefa )
by Ruud
10:54
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
     * @ORM\OneToMany(targetEntity="AnalyticsOverview", mappedBy="config", cascade={"persist", "remove"})
16
     */
17
    private $overviews;
18
19
    /**
20
     * @ORM\OneToMany(targetEntity="AnalyticsSegment", mappedBy="config", cascade={"persist", "remove"})
21
     */
22
    private $segments;
23
24
    /**
25
     * @var string
26
     *
27
     * @ORM\Column(name="name", type="text", nullable=true)
28
     */
29
    private $name = null;
30
31
    /**
32
     * @var string
33
     *
34
     * @ORM\Column(name="token", type="text", nullable=true)
35
     */
36
    private $token = null;
37
38
    /**
39
     * @var string
40
     *
41
     * @ORM\Column(name="account_id", type="string", nullable=true)
42
     */
43
    private $accountId = null;
44
45
    /**
46
     * @var string
47
     *
48
     * @ORM\Column(name="property_id", type="string", nullable=true)
49
     */
50
    private $propertyId = null;
51
52
    /**
53
     * @var string
54
     *
55
     * @ORM\Column(name="profile_id", type="string", nullable=true)
56
     */
57
    private $profileId = null;
58
59
    /**
60
     * @var \DateTime
61
     *
62
     * @ORM\Column(name="last_update", type="datetime", nullable=true)
63
     */
64
    private $lastUpdate = null;
65
66
    /**
67
     * @var bool
68
     *
69
     * @ORM\Column(name="disable_goals", type="boolean")
70
     */
71
    private $disableGoals = false;
72
73
    /**
74
     * Set overviews
75
     *
76
     * @param array $overviews
77
     *
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
     *
102
     * @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...
103
     */
104
    public function setSegments($segments)
105
    {
106
        $this->segments = $segments;
107
108
        return $this;
109
    }
110
111
    /**
112
     * Get segments
113
     *
114
     * @return array
115
     */
116
    public function getSegments()
117
    {
118
        return $this->segments;
119
    }
120
121
    /**
122
     * Get name
123
     *
124
     * @return string
125
     */
126
    public function getName()
127
    {
128
        return $this->name;
129
    }
130
131
    /**
132
     * Set name
133
     *
134
     * @param string $name
135
     *
136
     * @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...
137
     */
138
    public function setName($name)
139
    {
140
        $this->name = $name;
141
142
        return $this;
143
    }
144
145
    /**
146
     * Get token
147
     *
148
     * @return string
149
     */
150
    public function getToken()
151
    {
152
        return $this->token;
153
    }
154
155
    /**
156
     * Set token
157
     *
158
     * @param string $token
159
     *
160
     * @return $this
161
     */
162
    public function setToken($token)
163
    {
164
        $this->token = $token;
165
166
        return $this;
167
    }
168
169
    /**
170
     * Get propertyId
171
     *
172
     * @return string
173
     */
174
    public function getPropertyId()
175
    {
176
        return $this->propertyId;
177
    }
178
179
    /**
180
     * Set propertyId
181
     *
182
     * @param string $propertyId
183
     *
184
     * @return $this
185
     */
186
    public function setPropertyId($propertyId)
187
    {
188
        $this->propertyId = $propertyId;
189
190
        return $this;
191
    }
192
193
    /**
194
     * Get accountId
195
     *
196
     * @return string
197
     */
198
    public function getAccountId()
199
    {
200
        return $this->accountId;
201
    }
202
203
    /**
204
     * Set accountId
205
     *
206
     * @param string $accountId
207
     *
208
     * @return $this
209
     */
210
    public function setAccountId($accountId)
211
    {
212
        $this->accountId = $accountId;
213
214
        return $this;
215
    }
216
217
    /**
218
     * Get profileId
219
     *
220
     * @return string
221
     */
222
    public function getProfileId()
223
    {
224
        return $this->profileId;
225
    }
226
227
    /**
228
     * Set profileId
229
     *
230
     * @param string $profileId
231
     *
232
     * @return $this
233
     */
234
    public function setProfileId($profileId)
235
    {
236
        $this->profileId = $profileId;
237
238
        return $this;
239
    }
240
241
    /**
242
     * Get lastUpdate
243
     *
244
     * @return \DateTime
245
     */
246
    public function getLastUpdate()
247
    {
248
        return $this->lastUpdate;
249
    }
250
251
    /**
252
     * Set lastUpdate
253
     *
254
     * @param \DateTime $lastUpdate
255
     *
256
     * @return $this
257
     */
258
    public function setLastUpdate($lastUpdate)
259
    {
260
        $this->lastUpdate = $lastUpdate;
261
262
        return $this;
263
    }
264
265
    /**
266
     * Get disableGoals
267
     *
268
     * @return bool
269
     */
270
    public function getDisableGoals()
271
    {
272
        return $this->disableGoals;
273
    }
274
275
    /**
276
     * Set disableGoals
277
     *
278
     * @param bool $disableGoals
279
     *
280
     * @return $this
281
     */
282
    public function setDisableGoals($disableGoals)
283
    {
284
        $this->disableGoals = $disableGoals;
285
286
        return $this;
287
    }
288
}
289