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

ImageConversationCard::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\ImageConversationCardFields;
6
use Hborras\TwitterAdsSDK\TwitterAds\Resource;
7
8
class ImageConversationCard extends Resource
9
{
10
    const RESOURCE_COLLECTION = 'accounts/{account_id}/cards/image_conversation';
11
    const RESOURCE            = 'accounts/{account_id}/cards/image_conversation/{id}';
12
13
    /** Read Only */
14
    protected $id;
15
    protected $created_at;
16
    protected $updated_at;
17
    protected $deleted;
18
19
    protected $properties = [
20
        ImageConversationCardFields::NAME,
21
        ImageConversationCardFields::TITLE,
22
        ImageConversationCardFields::FIRST_CTA,
23
        ImageConversationCardFields::FIRST_CTA_TWEET,
24
        ImageConversationCardFields::SECOND_CTA,
25
        ImageConversationCardFields::SECOND_CTA_TWEET,
26
        ImageConversationCardFields::THANK_YOU_TEXT,
27
        ImageConversationCardFields::THANK_YOU_URL,
28
        ImageConversationCardFields::IMAGE_MEDIA_ID,
29
    ];
30
31
    /** Writable */
32
    protected $name;
33
    protected $title;
34
    protected $first_cta;
35
    protected $first_cta_tweet;
36
    protected $second_cta;
37
    protected $second_cta_tweet;
38
    protected $thank_you_text;
39
    protected $thank_you_url;
40
    protected $image_media_id;
41
42
    /**
43
     * @return mixed
44
     */
45
    public function getId()
46
    {
47
        return $this->id;
48
    }
49
50
    /**
51
     * @return mixed
52
     */
53
    public function getCreatedAt()
54
    {
55
        return $this->created_at;
56
    }
57
58
    /**
59
     * @return mixed
60
     */
61
    public function getUpdatedAt()
62
    {
63
        return $this->updated_at;
64
    }
65
66
    /**
67
     * @return mixed
68
     */
69
    public function getDeleted()
70
    {
71
        return $this->deleted;
72
    }
73
74
    /**
75
     * @return array
76
     */
77
    public function getProperties()
78
    {
79
        return $this->properties;
80
    }
81
82
    /**
83
     * @param array $properties
84
     */
85
    public function setProperties($properties)
86
    {
87
        $this->properties = $properties;
88
    }
89
90
    /**
91
     * @return mixed
92
     */
93
    public function getName()
94
    {
95
        return $this->name;
96
    }
97
98
    /**
99
     * @param mixed $name
100
     */
101
    public function setName($name)
102
    {
103
        $this->name = $name;
104
    }
105
106
    /**
107
     * @return mixed
108
     */
109
    public function getTitle()
110
    {
111
        return $this->title;
112
    }
113
114
    /**
115
     * @param mixed $title
116
     */
117
    public function setTitle($title)
118
    {
119
        $this->title = $title;
120
    }
121
122
    /**
123
     * @return mixed
124
     */
125
    public function getFirstCta()
126
    {
127
        return $this->first_cta;
128
    }
129
130
    /**
131
     * @param mixed $first_cta
132
     */
133
    public function setFirstCta($first_cta)
134
    {
135
        $this->first_cta = $first_cta;
136
    }
137
138
    /**
139
     * @return mixed
140
     */
141
    public function getFirstCtaTweet()
142
    {
143
        return $this->first_cta_tweet;
144
    }
145
146
    /**
147
     * @param mixed $first_cta_tweet
148
     */
149
    public function setFirstCtaTweet($first_cta_tweet)
150
    {
151
        $this->first_cta_tweet = $first_cta_tweet;
152
    }
153
154
    /**
155
     * @return mixed
156
     */
157
    public function getSecondCta()
158
    {
159
        return $this->second_cta;
160
    }
161
162
    /**
163
     * @param mixed $second_cta
164
     */
165
    public function setSecondCta($second_cta)
166
    {
167
        $this->second_cta = $second_cta;
168
    }
169
170
    /**
171
     * @return mixed
172
     */
173
    public function getSecondCtaTweet()
174
    {
175
        return $this->second_cta_tweet;
176
    }
177
178
    /**
179
     * @param mixed $second_cta_tweet
180
     */
181
    public function setSecondCtaTweet($second_cta_tweet)
182
    {
183
        $this->second_cta_tweet = $second_cta_tweet;
184
    }
185
186
    /**
187
     * @return mixed
188
     */
189
    public function getThankYouText()
190
    {
191
        return $this->thank_you_text;
192
    }
193
194
    /**
195
     * @param mixed $thank_you_text
196
     */
197
    public function setThankYouText($thank_you_text)
198
    {
199
        $this->thank_you_text = $thank_you_text;
200
    }
201
202
    /**
203
     * @return mixed
204
     */
205
    public function getThankYouUrl()
206
    {
207
        return $this->thank_you_url;
208
    }
209
210
    /**
211
     * @param mixed $thank_you_url
212
     */
213
    public function setThankYouUrl($thank_you_url)
214
    {
215
        $this->thank_you_url = $thank_you_url;
216
    }
217
218
    /**
219
     * @return mixed
220
     */
221
    public function getImageMediaId()
222
    {
223
        return $this->image_media_id;
224
    }
225
226
    /**
227
     * @param mixed $image_media_id
228
     */
229
    public function setImageMediaId($image_media_id)
230
    {
231
        $this->image_media_id = $image_media_id;
232
    }
233
}
234