Completed
Push — master ( a6b778...c85a41 )
by Hector
02:01
created

VideoAppDownloadCard   A

Complexity

Total Complexity 31

Size/Duplication

Total Lines 289
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 289
rs 9.92
c 0
b 0
f 0
wmc 31
lcom 0
cbo 1

31 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getPreviewUrl() 0 4 1
A getCreatedAt() 0 4 1
A getUpdatedAt() 0 4 1
A getDeleted() 0 4 1
A getProperties() 0 4 1
A setProperties() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getIphoneAppId() 0 4 1
A setIphoneAppId() 0 4 1
A getIphoneDeepLink() 0 4 1
A setIphoneDeepLink() 0 4 1
A getIpadAppId() 0 4 1
A setIpadAppId() 0 4 1
A getIpadDeepLink() 0 4 1
A setIpadDeepLink() 0 4 1
A getGoogleplayAppId() 0 4 1
A setGoogleplayAppId() 0 4 1
A getGoogleplayDeepLink() 0 4 1
A setGoogleplayDeepLink() 0 4 1
A getAppCta() 0 4 1
A setAppCta() 0 4 1
A getImageMediaId() 0 4 1
A setImageMediaId() 0 4 1
A getVideoId() 0 4 1
A setVideoId() 0 4 1
A getVideoUrl() 0 4 1
A getVideoPosterUrl() 0 4 1
A getCountryCode() 0 4 1
A setCountryCode() 0 4 1
1
<?php
2
3
namespace Hborras\TwitterAdsSDK\TwitterAds\Creative;
4
5
use Hborras\TwitterAdsSDK\TwitterAds\Fields\VideoAppDownloadCardFields;
6
use Hborras\TwitterAdsSDK\TwitterAds\Resource;
7
8
class VideoAppDownloadCard extends Resource
9
{
10
    const RESOURCE_COLLECTION = 'accounts/{account_id}/cards/video_app_download';
11
    const RESOURCE            = 'accounts/{account_id}/cards/video_app_download/{id}';
12
13
    /** Read Only */
14
    protected $id;
15
    protected $preview_url;
16
    protected $video_url;
17
    protected $video_poster_url;
18
    protected $created_at;
19
    protected $updated_at;
20
    protected $deleted;
21
22
    protected $properties = [
23
        VideoAppDownloadCardFields::NAME,
24
        VideoAppDownloadCardFields::COUNTRY_CODE,
25
        VideoAppDownloadCardFields::IPHONE_APP_ID,
26
        VideoAppDownloadCardFields::IPAD_DEEP_LINK,
27
        VideoAppDownloadCardFields::IPAD_APP_ID,
28
        VideoAppDownloadCardFields::IPAD_DEEP_LINK,
29
        VideoAppDownloadCardFields::GOOGLEPLAY_APP_ID,
30
        VideoAppDownloadCardFields::GOOGLEPLAY_DEEP_LINK,
31
        VideoAppDownloadCardFields::APP_CTA,
32
        VideoAppDownloadCardFields::IMAGE_MEDIA_ID,
33
        VideoAppDownloadCardFields::VIDEO_ID,
34
    ];
35
36
    /** Writable */
37
    protected $name;
38
    protected $country_code;
39
    protected $iphone_app_id;
40
    protected $iphone_deep_link;
41
    protected $ipad_app_id;
42
    protected $ipad_deep_link;
43
    protected $googleplay_app_id;
44
    protected $googleplay_deep_link;
45
    protected $app_cta;
46
    protected $image_media_id;
47
    protected $video_id;
48
49
    /**
50
     * @return mixed
51
     */
52
    public function getId()
53
    {
54
        return $this->id;
55
    }
56
57
    /**
58
     * @return mixed
59
     */
60
    public function getPreviewUrl()
61
    {
62
        return $this->preview_url;
63
    }
64
65
    /**
66
     * @return mixed
67
     */
68
    public function getCreatedAt()
69
    {
70
        return $this->created_at;
71
    }
72
73
    /**
74
     * @return mixed
75
     */
76
    public function getUpdatedAt()
77
    {
78
        return $this->updated_at;
79
    }
80
81
    /**
82
     * @return mixed
83
     */
84
    public function getDeleted()
85
    {
86
        return $this->deleted;
87
    }
88
89
    /**
90
     * @return array
91
     */
92
    public function getProperties()
93
    {
94
        return $this->properties;
95
    }
96
97
    /**
98
     * @param array $properties
99
     */
100
    public function setProperties($properties)
101
    {
102
        $this->properties = $properties;
103
    }
104
105
    /**
106
     * @return mixed
107
     */
108
    public function getName()
109
    {
110
        return $this->name;
111
    }
112
113
    /**
114
     * @param mixed $name
115
     */
116
    public function setName($name)
117
    {
118
        $this->name = $name;
119
    }
120
121
    /**
122
     * @return mixed
123
     */
124
    public function getCountryCode()
125
    {
126
        return $this->country_code;
127
    }
128
129
    /**
130
     * @param mixed $country_code
131
     */
132
    public function setCountryCode($country_code)
133
    {
134
        $this->country_code = $country_code;
135
    }
136
137
    /**
138
     * @return mixed
139
     */
140
    public function getIphoneAppId()
141
    {
142
        return $this->iphone_app_id;
143
    }
144
145
    /**
146
     * @param mixed $iphone_app_id
147
     */
148
    public function setIphoneAppId($iphone_app_id)
149
    {
150
        $this->iphone_app_id = $iphone_app_id;
151
    }
152
153
    /**
154
     * @return mixed
155
     */
156
    public function getIphoneDeepLink()
157
    {
158
        return $this->iphone_deep_link;
159
    }
160
161
    /**
162
     * @param mixed $iphone_deep_link
163
     */
164
    public function setIphoneDeepLink($iphone_deep_link)
165
    {
166
        $this->iphone_deep_link = $iphone_deep_link;
167
    }
168
169
    /**
170
     * @return mixed
171
     */
172
    public function getIpadAppId()
173
    {
174
        return $this->ipad_app_id;
175
    }
176
177
    /**
178
     * @param mixed $ipad_app_id
179
     */
180
    public function setIpadAppId($ipad_app_id)
181
    {
182
        $this->ipad_app_id = $ipad_app_id;
183
    }
184
185
    /**
186
     * @return mixed
187
     */
188
    public function getIpadDeepLink()
189
    {
190
        return $this->ipad_deep_link;
191
    }
192
193
    /**
194
     * @param mixed $ipad_deep_link
195
     */
196
    public function setIpadDeepLink($ipad_deep_link)
197
    {
198
        $this->ipad_deep_link = $ipad_deep_link;
199
    }
200
201
    /**
202
     * @return mixed
203
     */
204
    public function getGoogleplayAppId()
205
    {
206
        return $this->googleplay_app_id;
207
    }
208
209
    /**
210
     * @param mixed $googleplay_app_id
211
     */
212
    public function setGoogleplayAppId($googleplay_app_id)
213
    {
214
        $this->googleplay_app_id = $googleplay_app_id;
215
    }
216
217
    /**
218
     * @return mixed
219
     */
220
    public function getGoogleplayDeepLink()
221
    {
222
        return $this->googleplay_deep_link;
223
    }
224
225
    /**
226
     * @param mixed $googleplay_deep_link
227
     */
228
    public function setGoogleplayDeepLink($googleplay_deep_link)
229
    {
230
        $this->googleplay_deep_link = $googleplay_deep_link;
231
    }
232
233
    /**
234
     * @return mixed
235
     */
236
    public function getAppCta()
237
    {
238
        return $this->app_cta;
239
    }
240
241
    /**
242
     * @param mixed $app_cta
243
     */
244
    public function setAppCta($app_cta)
245
    {
246
        $this->app_cta = $app_cta;
247
    }
248
249
    /**
250
     * @return mixed
251
     */
252
    public function getImageMediaId()
253
    {
254
        return $this->image_media_id;
255
    }
256
257
    /**
258
     * @param mixed $image_media_id
259
     */
260
    public function setImageMediaId($image_media_id)
261
    {
262
        $this->image_media_id = $image_media_id;
263
    }
264
265
    /**
266
     * @return mixed
267
     */
268
    public function getVideoId()
269
    {
270
        return $this->video_id;
271
    }
272
273
    /**
274
     * @param mixed $video_id
275
     */
276
    public function setVideoId($video_id)
277
    {
278
        $this->video_id = $video_id;
279
    }
280
281
    /**
282
     * @return mixed
283
     */
284
    public function getVideoUrl()
285
    {
286
        return $this->video_url;
287
    }
288
289
    /**
290
     * @return mixed
291
     */
292
    public function getVideoPosterUrl()
293
    {
294
        return $this->video_poster_url;
295
    }
296
}
297