Completed
Push — master ( f1984f...37c291 )
by Hector
17s queued 11s
created

VideoAppDownloadCard::getProperties()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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