@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * @param array $queryParams The list of query parameters. |
164 | 164 | * @param string $method HTTP method (GET or POST). |
165 | 165 | * @param array $postData Data send in request body (only for POST method). |
166 | - * @return array Optimizely response in form of array. |
|
166 | + * @return Result Optimizely response in form of array. |
|
167 | 167 | * @throws Exception |
168 | 168 | */ |
169 | 169 | public function sendApiRequest($url, $queryParams = array(), $method='GET', |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | * @param array $queryParams The list of query parameters. |
189 | 189 | * @param string $method HTTP method (GET or POST). |
190 | 190 | * @param array $postData Data send in request body (only for POST method). |
191 | - * @return array Optimizely response in form of array. |
|
191 | + * @return Result Optimizely response in form of array. |
|
192 | 192 | * @throws Exception |
193 | 193 | */ |
194 | 194 | private function sendHttpRequest($url, $queryParams = array(), $method='GET', |
@@ -82,7 +82,6 @@ discard block |
||
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Set HTTP response code. |
85 | - * @param integer $code |
|
86 | 85 | */ |
87 | 86 | public function setHttpCode($httpCode) |
88 | 87 | { |
@@ -100,7 +99,6 @@ discard block |
||
100 | 99 | |
101 | 100 | /** |
102 | 101 | * Set message |
103 | - * @param string $message |
|
104 | 102 | */ |
105 | 103 | public function setUuid($uuid) |
106 | 104 | { |
@@ -145,7 +143,7 @@ discard block |
||
145 | 143 | |
146 | 144 | /** |
147 | 145 | * Return the exact time that your fresh new rate limit kicks in. |
148 | - * @return integer|null |
|
146 | + * @return string |
|
149 | 147 | */ |
150 | 148 | public function getRateLimitReset() |
151 | 149 | { |
@@ -70,8 +70,6 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Constructor. |
72 | 72 | * @param array $decodedJsonData |
73 | - * @param string $rawHttpResponseData |
|
74 | - * @param array[string] $rawHttpResponseHeaders |
|
75 | 73 | */ |
76 | 74 | public function __construct($decodedJsonData, $httpCode) |
77 | 75 | { |
@@ -90,7 +88,6 @@ discard block |
||
90 | 88 | |
91 | 89 | /** |
92 | 90 | * Set HTTP response code. |
93 | - * @param integer $code |
|
94 | 91 | */ |
95 | 92 | public function setHttpCode($httpCode) |
96 | 93 | { |
@@ -108,7 +105,7 @@ discard block |
||
108 | 105 | |
109 | 106 | /** |
110 | 107 | * Set payload (parsed and wrapped response data). |
111 | - * @param mixed $payload |
|
108 | + * @param integer $payload |
|
112 | 109 | */ |
113 | 110 | public function setPayload($payload) |
114 | 111 | { |
@@ -225,7 +222,7 @@ discard block |
||
225 | 222 | |
226 | 223 | /** |
227 | 224 | * Return the exact time that your fresh new rate limit kicks in. |
228 | - * @return integer|null |
|
225 | + * @return string |
|
229 | 226 | */ |
230 | 227 | public function getRateLimitReset() |
231 | 228 | { |
@@ -95,7 +95,7 @@ |
||
95 | 95 | /** |
96 | 96 | * Get campaign results |
97 | 97 | * @param integer $campaignId The id for the campaign you want results for |
98 | - * @param string $starTime The earliest time to count events in results. Defaults to the time that the campaign was first activated. |
|
98 | + * @param string $startTime The earliest time to count events in results. Defaults to the time that the campaign was first activated. |
|
99 | 99 | * @param string $endTime The latest time to count events in results. Defaults to the time the campaign was last active or the current time if the campaign is still running. |
100 | 100 | * @return Result |
101 | 101 | * @throws Exception |
@@ -316,6 +316,9 @@ discard block |
||
316 | 316 | return $this->attributes; |
317 | 317 | } |
318 | 318 | |
319 | + /** |
|
320 | + * @param ChangeAttribute $attributes |
|
321 | + */ |
|
319 | 322 | public function setAttributes($attributes) |
320 | 323 | { |
321 | 324 | $this->attributes = $attributes; |
@@ -326,6 +329,9 @@ discard block |
||
326 | 329 | return $this->rearrange; |
327 | 330 | } |
328 | 331 | |
332 | + /** |
|
333 | + * @param string $rearrange |
|
334 | + */ |
|
329 | 335 | public function setRearrange($rearrange) |
330 | 336 | { |
331 | 337 | $this->rearrange = $rearrange; |
@@ -346,6 +352,9 @@ discard block |
||
346 | 352 | return $this->css; |
347 | 353 | } |
348 | 354 | |
355 | + /** |
|
356 | + * @param CssAttribute $css |
|
357 | + */ |
|
349 | 358 | public function setCss($css) |
350 | 359 | { |
351 | 360 | $this->css = $css; |
@@ -346,6 +346,9 @@ |
||
346 | 346 | return $this->schedule; |
347 | 347 | } |
348 | 348 | |
349 | + /** |
|
350 | + * @param Schedule $schedule |
|
351 | + */ |
|
349 | 352 | public function setSchedule($schedule) |
350 | 353 | { |
351 | 354 | $this->schedule = $schedule; |