1 | <?php |
||
17 | class Target |
||
18 | { |
||
19 | const SORTING_ASC = 'ASC'; |
||
20 | const SORTING_DESC = 'DESC'; |
||
21 | |||
22 | /** |
||
23 | * @var The ID of the selected list as target for the journey map. |
||
24 | */ |
||
25 | private $listId; |
||
26 | |||
27 | /** |
||
28 | * @var string The field on which the pickup priority for broadcasting is based. |
||
29 | */ |
||
30 | private $priorityField; |
||
31 | |||
32 | /** |
||
33 | * @var string The sorting applied to the pickup priority field. |
||
34 | */ |
||
35 | private $prioritySorting; |
||
36 | |||
37 | /** |
||
38 | * @var integer If selected, the ID of the related segment to be used. |
||
39 | */ |
||
40 | private $segmentId; |
||
41 | |||
42 | /** |
||
43 | * @var string The constraint defined on the targets. |
||
44 | */ |
||
45 | private $constraint; |
||
46 | |||
47 | /** |
||
48 | * @var Array The profile extensions to include in the target. |
||
49 | */ |
||
50 | private $scopes; |
||
51 | |||
52 | /** |
||
53 | * |
||
54 | */ |
||
55 | 2 | public function __construct() |
|
59 | |||
60 | /** |
||
61 | * @param integer The ID of the selected list as target for the journey map. |
||
62 | * @return self |
||
63 | */ |
||
64 | 1 | public function setListId($listId) |
|
70 | |||
71 | /** |
||
72 | * @return integer The ID of the selected list as target for the journey map. |
||
73 | */ |
||
74 | 1 | public function getListId() |
|
78 | |||
79 | /** |
||
80 | * @param string The field on which the pickup priority for broadcasting is based. |
||
81 | * @return self |
||
82 | */ |
||
83 | 1 | public function setPriorityField($priorityField) |
|
89 | |||
90 | /** |
||
91 | * @return string The field on which the pickup priority for broadcasting is based. |
||
92 | */ |
||
93 | 1 | public function getPriorityField() |
|
97 | |||
98 | /** |
||
99 | * @param string The sorting applied to the pickup priority field. Possible values are ASC and DESC. |
||
100 | * @throws \InvalidArgumentException |
||
101 | * @return self |
||
102 | */ |
||
103 | 2 | public function setPrioritySorting($prioritySorting) |
|
115 | |||
116 | /** |
||
117 | * @return string The sorting applied to the pickup priority field. |
||
118 | */ |
||
119 | 1 | public function getPrioritySorting() |
|
123 | |||
124 | /** |
||
125 | * @param integer $segmentId If selected, the ID of the related segment to be used. |
||
126 | * @return self |
||
127 | */ |
||
128 | 1 | public function setSegmentId($segmentId) |
|
134 | |||
135 | /** |
||
136 | * @return integer If selected, the ID of the related segment to be used. |
||
137 | */ |
||
138 | 1 | public function getSegmentId() |
|
142 | |||
143 | /** |
||
144 | * @param string The constraint defined on the targets. |
||
145 | * @return self |
||
146 | */ |
||
147 | 1 | public function setConstraint($constraint) |
|
153 | |||
154 | /** |
||
155 | * @return string The constraint defined on the targets. |
||
156 | */ |
||
157 | 1 | public function getConstraint() |
|
161 | |||
162 | /** |
||
163 | * @param array The profile extensions to include in the target. |
||
164 | * @return Array |
||
165 | */ |
||
166 | 1 | public function setScopes($scopes = array()) |
|
172 | |||
173 | /** |
||
174 | * @return string The profile extensions to include in the target. Multiple scopes are separated by a semi colon. |
||
175 | */ |
||
176 | 1 | public function getScopes() |
|
182 | } |
||
183 |