|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* Created by PhpStorm. |
|
4
|
|
|
* User: hborras |
|
5
|
|
|
* Date: 11/01/18 |
|
6
|
|
|
* Time: 21:28 |
|
7
|
|
|
*/ |
|
8
|
|
|
|
|
9
|
|
|
namespace Hborras\TwitterAdsSDK\TwitterAds\Campaign; |
|
10
|
|
|
|
|
11
|
|
|
|
|
12
|
|
|
use Hborras\TwitterAdsSDK\TwitterAds\Fields\LineItemAppFields; |
|
13
|
|
|
use Hborras\TwitterAdsSDK\TwitterAds\Resource; |
|
14
|
|
|
|
|
15
|
|
|
class LineItemApp extends Resource |
|
16
|
|
|
{ |
|
17
|
|
|
const RESOURCE_COLLECTION = 'accounts/{account_id}/line_item_apps'; |
|
18
|
|
|
const RESOURCE = 'accounts/{account_id}/line_item_apps/{id}'; |
|
19
|
|
|
const ENTITY = 'LINE_ITEM_APP'; |
|
20
|
|
|
|
|
21
|
|
|
/** Read Only */ |
|
22
|
|
|
protected $id; |
|
23
|
|
|
protected $created_at; |
|
24
|
|
|
protected $updated_at; |
|
25
|
|
|
protected $deleted; |
|
26
|
|
|
|
|
27
|
|
|
protected $properties = [ |
|
28
|
|
|
LineItemAppFields::LINE_ITEM_ID, |
|
29
|
|
|
LineItemAppFields::APP_STORE_IDENTIFIER, |
|
30
|
|
|
LineItemAppFields::OS_TYPE |
|
31
|
|
|
]; |
|
32
|
|
|
|
|
33
|
|
|
protected $line_item_id; |
|
34
|
|
|
protected $app_store_identifier; |
|
35
|
|
|
protected $os_type; |
|
36
|
|
|
|
|
37
|
|
|
public function getId() |
|
38
|
|
|
{ |
|
39
|
|
|
return $this->id; |
|
40
|
|
|
} |
|
41
|
|
|
|
|
42
|
|
|
/** |
|
43
|
|
|
* @return mixed |
|
44
|
|
|
*/ |
|
45
|
|
|
public function getCreatedAt() |
|
46
|
|
|
{ |
|
47
|
|
|
return $this->created_at; |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* @return mixed |
|
52
|
|
|
*/ |
|
53
|
|
|
public function getUpdatedAt() |
|
54
|
|
|
{ |
|
55
|
|
|
return $this->updated_at; |
|
56
|
|
|
} |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @return mixed |
|
60
|
|
|
*/ |
|
61
|
|
|
public function getDeleted() |
|
62
|
|
|
{ |
|
63
|
|
|
return $this->deleted; |
|
64
|
|
|
} |
|
65
|
|
|
|
|
66
|
|
|
/** |
|
67
|
|
|
* @return array |
|
68
|
|
|
*/ |
|
69
|
|
|
public function getProperties() |
|
70
|
|
|
{ |
|
71
|
|
|
return $this->properties; |
|
72
|
|
|
} |
|
73
|
|
|
|
|
74
|
|
|
/** |
|
75
|
|
|
* @return mixed |
|
76
|
|
|
*/ |
|
77
|
|
|
public function getLineItemId() |
|
78
|
|
|
{ |
|
79
|
|
|
return $this->line_item_id; |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* @return mixed |
|
84
|
|
|
*/ |
|
85
|
|
|
public function getAppStoreIdentifier() |
|
86
|
|
|
{ |
|
87
|
|
|
return $this->app_store_identifier; |
|
88
|
|
|
} |
|
89
|
|
|
|
|
90
|
|
|
/** |
|
91
|
|
|
* @return mixed |
|
92
|
|
|
*/ |
|
93
|
|
|
public function getOsType() |
|
94
|
|
|
{ |
|
95
|
|
|
return $this->os_type; |
|
96
|
|
|
} |
|
97
|
|
|
|
|
98
|
|
|
/** |
|
99
|
|
|
* @param mixed $line_item_id |
|
100
|
|
|
*/ |
|
101
|
|
|
public function setLineItemId($line_item_id) |
|
102
|
|
|
{ |
|
103
|
|
|
$this->line_item_id = $line_item_id; |
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* @param mixed $app_store_identifier |
|
108
|
|
|
*/ |
|
109
|
|
|
public function setAppStoreIdentifier($app_store_identifier) |
|
110
|
|
|
{ |
|
111
|
|
|
$this->app_store_identifier = $app_store_identifier; |
|
112
|
|
|
} |
|
113
|
|
|
|
|
114
|
|
|
/** |
|
115
|
|
|
* @param mixed $os_type |
|
116
|
|
|
*/ |
|
117
|
|
|
public function setOsType($os_type) |
|
118
|
|
|
{ |
|
119
|
|
|
$this->os_type = $os_type; |
|
120
|
|
|
} |
|
121
|
|
|
} |