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

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