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

ImageAppDownloadCard::setCountryCode()   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 1
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 $preview_url;
16
    protected $created_at;
17
    protected $updated_at;
18
    protected $deleted;
19
20
    protected $properties = [
21
        ImageAppDownloadCardFields::NAME,
22
        ImageAppDownloadCardFields::COUNTRY_CODE,
23
        ImageAppDownloadCardFields::IPHONE_APP_ID,
24
        ImageAppDownloadCardFields::IPHONE_DEEP_LINK,
25
        ImageAppDownloadCardFields::IPAD_APP_ID,
26
        ImageAppDownloadCardFields::IPAD_DEEP_LINK,
27
        ImageAppDownloadCardFields::GOOGLEPLAY_APP_ID,
28
        ImageAppDownloadCardFields::GOOGLEPLAY_DEEP_LINK,
29
        ImageAppDownloadCardFields::APP_CTA,
30
        ImageAppDownloadCardFields::WIDE_APP_IMAGE_MEDIA_ID
31
    ];
32
33
    /** Writable */
34
    protected $name;
35
    protected $country_code;
36
    protected $iphone_app_id;
37
    protected $iphone_deep_link;
38
    protected $ipad_app_id;
39
    protected $ipad_deep_link;
40
    protected $googleplay_app_id;
41
    protected $googleplay_deep_link;
42
    protected $app_cta;
43
    protected $wide_app_image_media_id;
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getId()
49
    {
50
        return $this->id;
51
    }
52
53
    /**
54
     * @return mixed
55
     */
56
    public function getPreviewUrl()
57
    {
58
        return $this->preview_url;
59
    }
60
61
    /**
62
     * @return mixed
63
     */
64
    public function getCreatedAt()
65
    {
66
        return $this->created_at;
67
    }
68
69
    /**
70
     * @return mixed
71
     */
72
    public function getUpdatedAt()
73
    {
74
        return $this->updated_at;
75
    }
76
77
    /**
78
     * @return mixed
79
     */
80
    public function getDeleted()
81
    {
82
        return $this->deleted;
83
    }
84
85
    /**
86
     * @return array
87
     */
88
    public function getProperties()
89
    {
90
        return $this->properties;
91
    }
92
93
    /**
94
     * @param array $properties
95
     */
96
    public function setProperties($properties)
97
    {
98
        $this->properties = $properties;
99
    }
100
101
    /**
102
     * @return mixed
103
     */
104
    public function getName()
105
    {
106
        return $this->name;
107
    }
108
109
    /**
110
     * @param mixed $name
111
     */
112
    public function setName($name)
113
    {
114
        $this->name = $name;
115
    }
116
117
    /**
118
     * @return mixed
119
     */
120
    public function getCountryCode()
121
    {
122
        return $this->country_code;
123
    }
124
125
    /**
126
     * @param mixed $country_code
127
     */
128
    public function setCountryCode($country_code)
129
    {
130
        $this->country_code = $country_code;
131
    }
132
133
    /**
134
     * @return mixed
135
     */
136
    public function getIphoneAppId()
137
    {
138
        return $this->iphone_app_id;
139
    }
140
141
    /**
142
     * @param mixed $iphone_app_id
143
     */
144
    public function setIphoneAppId($iphone_app_id)
145
    {
146
        $this->iphone_app_id = $iphone_app_id;
147
    }
148
149
    /**
150
     * @return mixed
151
     */
152
    public function getIphoneDeepLink()
153
    {
154
        return $this->iphone_deep_link;
155
    }
156
157
    /**
158
     * @param mixed $iphone_deep_link
159
     */
160
    public function setIphoneDeepLink($iphone_deep_link)
161
    {
162
        $this->iphone_deep_link = $iphone_deep_link;
163
    }
164
165
    /**
166
     * @return mixed
167
     */
168
    public function getIpadAppId()
169
    {
170
        return $this->ipad_app_id;
171
    }
172
173
    /**
174
     * @param mixed $ipad_app_id
175
     */
176
    public function setIpadAppId($ipad_app_id)
177
    {
178
        $this->ipad_app_id = $ipad_app_id;
179
    }
180
181
    /**
182
     * @return mixed
183
     */
184
    public function getIpadDeepLink()
185
    {
186
        return $this->ipad_deep_link;
187
    }
188
189
    /**
190
     * @param mixed $ipad_deep_link
191
     */
192
    public function setIpadDeepLink($ipad_deep_link)
193
    {
194
        $this->ipad_deep_link = $ipad_deep_link;
195
    }
196
197
    /**
198
     * @return mixed
199
     */
200
    public function getGoogleplayAppId()
201
    {
202
        return $this->googleplay_app_id;
203
    }
204
205
    /**
206
     * @param mixed $googleplay_app_id
207
     */
208
    public function setGoogleplayAppId($googleplay_app_id)
209
    {
210
        $this->googleplay_app_id = $googleplay_app_id;
211
    }
212
213
    /**
214
     * @return mixed
215
     */
216
    public function getGoogleplayDeepLink()
217
    {
218
        return $this->googleplay_deep_link;
219
    }
220
221
    /**
222
     * @param mixed $googleplay_deep_link
223
     */
224
    public function setGoogleplayDeepLink($googleplay_deep_link)
225
    {
226
        $this->googleplay_deep_link = $googleplay_deep_link;
227
    }
228
229
    /**
230
     * @return mixed
231
     */
232
    public function getAppCta()
233
    {
234
        return $this->app_cta;
235
    }
236
237
    /**
238
     * @param mixed $app_cta
239
     */
240
    public function setAppCta($app_cta)
241
    {
242
        $this->app_cta = $app_cta;
243
    }
244
245
    /**
246
     * @return mixed
247
     */
248
    public function getWideAppImageMediaId()
249
    {
250
        return $this->wide_app_image_media_id;
251
    }
252
253
    /**
254
     * @param mixed $wide_app_image_media_id
255
     */
256
    public function setWideAppImageMediaId($wide_app_image_media_id)
257
    {
258
        $this->wide_app_image_media_id = $wide_app_image_media_id;
259
    }
260
}
261