Completed
Push — master ( 600f6d...f1984f )
by Hector
28s queued 11s
created

ImageAppDownloadCard::getPreviewUrl()   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\Fields\ImageAppDownloadCardFields;
6
use Hborras\TwitterAdsSDK\TwitterAds\Resource;
7
8
class ImageAppDownloadCard extends Resource
9
{
10
    const RESOURCE_COLLECTION = 'accounts/{account_id}/cards/image_app_download';
11
    const RESOURCE            = 'accounts/{account_id}/cards/image_app_download/{id}';
12
13
    /** Read Only */
14
    protected $id;
15
    protected $created_at;
16
    protected $updated_at;
17
    protected $deleted;
18
19
    protected $properties = [
20
        ImageAppDownloadCardFields::NAME,
21
        ImageAppDownloadCardFields::COUNTRY_CODE,
22
        ImageAppDownloadCardFields::IPHONE_APP_ID,
23
        ImageAppDownloadCardFields::IPHONE_DEEP_LINK,
24
        ImageAppDownloadCardFields::IPAD_APP_ID,
25
        ImageAppDownloadCardFields::IPAD_DEEP_LINK,
26
        ImageAppDownloadCardFields::GOOGLEPLAY_APP_ID,
27
        ImageAppDownloadCardFields::GOOGLEPLAY_DEEP_LINK,
28
        ImageAppDownloadCardFields::APP_CTA,
29
        ImageAppDownloadCardFields::WIDE_APP_IMAGE_MEDIA_ID
30
    ];
31
32
    /** Writable */
33
    protected $name;
34
    protected $country_code;
35
    protected $iphone_app_id;
36
    protected $iphone_deep_link;
37
    protected $ipad_app_id;
38
    protected $ipad_deep_link;
39
    protected $googleplay_app_id;
40
    protected $googleplay_deep_link;
41
    protected $app_cta;
42
    protected $wide_app_image_media_id;
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getId()
48
    {
49
        return $this->id;
50
    }
51
52
    /**
53
     * @return mixed
54
     */
55
    public function getCreatedAt()
56
    {
57
        return $this->created_at;
58
    }
59
60
    /**
61
     * @return mixed
62
     */
63
    public function getUpdatedAt()
64
    {
65
        return $this->updated_at;
66
    }
67
68
    /**
69
     * @return mixed
70
     */
71
    public function getDeleted()
72
    {
73
        return $this->deleted;
74
    }
75
76
    /**
77
     * @return array
78
     */
79
    public function getProperties()
80
    {
81
        return $this->properties;
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 getWideAppImageMediaId()
240
    {
241
        return $this->wide_app_image_media_id;
242
    }
243
244
    /**
245
     * @param mixed $wide_app_image_media_id
246
     */
247
    public function setWideAppImageMediaId($wide_app_image_media_id)
248
    {
249
        $this->wide_app_image_media_id = $wide_app_image_media_id;
250
    }
251
}
252