1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Created by PhpStorm. |
4
|
|
|
* User: hborras |
5
|
|
|
* Date: 3/04/16 |
6
|
|
|
* Time: 11:59. |
7
|
|
|
*/ |
8
|
|
|
namespace Hborras\TwitterAdsSDK\TwitterAds\Analytics; |
9
|
|
|
|
10
|
|
|
use Hborras\TwitterAdsSDK\TwitterAds\Analytics; |
11
|
|
|
|
12
|
|
|
class Job extends Analytics |
13
|
|
|
{ |
14
|
|
|
const RESOURCE_COLLECTION = 'stats/jobs/accounts/{account_id}'; |
15
|
|
|
const RESOURCE = 'stats/jobs/accounts/{account_id}/{id}'; |
16
|
|
|
const ENTITY = 'JOBS'; |
17
|
|
|
|
18
|
|
|
/** Read Only */ |
19
|
|
|
protected $id; |
20
|
|
|
protected $start_time; |
21
|
|
|
protected $segmentation_type; |
22
|
|
|
protected $url; |
23
|
|
|
protected $id_str; |
24
|
|
|
protected $entity_ids; |
25
|
|
|
protected $end_time; |
26
|
|
|
protected $placement; |
27
|
|
|
protected $expires_at; |
28
|
|
|
protected $account_id; |
29
|
|
|
protected $status; |
30
|
|
|
protected $granularity; |
31
|
|
|
protected $entity; |
32
|
|
|
protected $created_at; |
33
|
|
|
protected $updated_at; |
34
|
|
|
protected $metric_groups; |
35
|
|
|
|
36
|
|
|
protected $properties = []; |
37
|
|
|
|
38
|
|
|
/** |
39
|
|
|
* @return mixed |
40
|
|
|
*/ |
41
|
|
|
public function getStartTime() |
42
|
|
|
{ |
43
|
|
|
return $this->start_time; |
44
|
|
|
} |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @return mixed |
48
|
|
|
*/ |
49
|
|
|
public function getSegmentationType() |
50
|
|
|
{ |
51
|
|
|
return $this->segmentation_type; |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @return mixed |
56
|
|
|
*/ |
57
|
|
|
public function getUrl() |
58
|
|
|
{ |
59
|
|
|
return $this->url; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @return mixed |
64
|
|
|
*/ |
65
|
|
|
public function getIdStr() |
66
|
|
|
{ |
67
|
|
|
return $this->id_str; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @return mixed |
72
|
|
|
*/ |
73
|
|
|
public function getEntityIds() |
74
|
|
|
{ |
75
|
|
|
return $this->entity_ids; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return mixed |
80
|
|
|
*/ |
81
|
|
|
public function getEndTime() |
82
|
|
|
{ |
83
|
|
|
return $this->end_time; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* @return mixed |
88
|
|
|
*/ |
89
|
|
|
public function getPlacement() |
90
|
|
|
{ |
91
|
|
|
return $this->placement; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @return mixed |
96
|
|
|
*/ |
97
|
|
|
public function getExpiresAt() |
98
|
|
|
{ |
99
|
|
|
return $this->expires_at; |
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* @return mixed |
104
|
|
|
*/ |
105
|
|
|
public function getAccountId() |
106
|
|
|
{ |
107
|
|
|
return $this->account_id; |
108
|
|
|
} |
109
|
|
|
|
110
|
|
|
/** |
111
|
|
|
* @return mixed |
112
|
|
|
*/ |
113
|
|
|
public function getStatus() |
114
|
|
|
{ |
115
|
|
|
return $this->status; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* @return mixed |
120
|
|
|
*/ |
121
|
|
|
public function getGranularity() |
122
|
|
|
{ |
123
|
|
|
return $this->granularity; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
/** |
127
|
|
|
* @return mixed |
128
|
|
|
*/ |
129
|
|
|
public function getEntity() |
130
|
|
|
{ |
131
|
|
|
return $this->entity; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @return mixed |
136
|
|
|
*/ |
137
|
|
|
public function getCreatedAt() |
138
|
|
|
{ |
139
|
|
|
return $this->created_at; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
/** |
143
|
|
|
* @return mixed |
144
|
|
|
*/ |
145
|
|
|
public function getUpdatedAt() |
146
|
|
|
{ |
147
|
|
|
return $this->updated_at; |
148
|
|
|
} |
149
|
|
|
|
150
|
|
|
/** |
151
|
|
|
* @return mixed |
152
|
|
|
*/ |
153
|
|
|
public function getMetricGroups() |
154
|
|
|
{ |
155
|
|
|
return $this->metric_groups; |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @return array |
160
|
|
|
*/ |
161
|
|
|
public function getProperties() |
162
|
|
|
{ |
163
|
|
|
return $this->properties; |
164
|
|
|
} |
165
|
|
|
|
166
|
|
|
|
167
|
|
|
} |
168
|
|
|
|