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

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