Skip to content

Commit 23c4db8

Browse files
authored
Deprecated function apps removed in 4.x (#414)
1 parent d321705 commit 23c4db8

File tree

3 files changed

+0
-212
lines changed

3 files changed

+0
-212
lines changed

src/Api/Monetization/Structure/Reports/Criteria/AbstractCriteria.php

Lines changed: 0 additions & 182 deletions
Original file line numberDiff line numberDiff line change
@@ -116,21 +116,6 @@ public function getApps(): array
116116
return $this->apps;
117117
}
118118

119-
/**
120-
* @param string ...$appIds
121-
*
122-
* @return self
123-
*
124-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
125-
* https://github.com/apigee/apigee-client-php/issues/373
126-
*/
127-
public function apps(string ...$appIds): self
128-
{
129-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setApps() instead.', E_USER_DEPRECATED);
130-
131-
return $this->setApps(...$appIds);
132-
}
133-
134119
/**
135120
* @param string ...$appIds
136121
*
@@ -151,21 +136,6 @@ public function getCurrencies(): array
151136
return $this->currencies;
152137
}
153138

154-
/**
155-
* @param string ...$currencyIds
156-
*
157-
* @return self
158-
*
159-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
160-
* https://github.com/apigee/apigee-client-php/issues/373
161-
*/
162-
public function currencies(string ...$currencyIds): self
163-
{
164-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setCurrencies() instead.', E_USER_DEPRECATED);
165-
166-
return $this->setCurrencies(...$currencyIds);
167-
}
168-
169139
/**
170140
* @param string ...$currencyIds
171141
*
@@ -186,23 +156,6 @@ public function getCurrencyOption(): ?string
186156
return $this->currencyOption;
187157
}
188158

189-
/**
190-
* @param string|null $currencyOption
191-
*
192-
* @return self
193-
*
194-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
195-
* https://github.com/apigee/apigee-client-php/issues/373
196-
*/
197-
public function currencyOption(?string $currencyOption): self
198-
{
199-
// This tweak allows to reset the previously configured currency option
200-
// by calling this method with an empty string or null.
201-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setCurrencyOption() instead.', E_USER_DEPRECATED);
202-
203-
return $this->setCurrencyOption($currencyOption);
204-
}
205-
206159
/**
207160
* @param string|null $currencyOption
208161
*
@@ -217,21 +170,6 @@ public function setCurrencyOption(?string $currencyOption): self
217170
return $this;
218171
}
219172

220-
/**
221-
* @param string ...$developerIds
222-
*
223-
* @return self
224-
*
225-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
226-
* https://github.com/apigee/apigee-client-php/issues/373
227-
*/
228-
public function developers(string ...$developerIds): self
229-
{
230-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setDevelopers() instead.', E_USER_DEPRECATED);
231-
232-
return $this->setDevelopers(...$developerIds);
233-
}
234-
235173
/**
236174
* @param string ...$developerIds
237175
*
@@ -260,21 +198,6 @@ public function getApiPackages(): array
260198
return $this->apiPackages;
261199
}
262200

263-
/**
264-
* @param string ...$apiPackageIds
265-
*
266-
* @return self
267-
*
268-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
269-
* https://github.com/apigee/apigee-client-php/issues/373
270-
*/
271-
public function apiPackages(string ...$apiPackageIds): self
272-
{
273-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setApiPackages() instead.', E_USER_DEPRECATED);
274-
275-
return $this->setApiPackages(...$apiPackageIds);
276-
}
277-
278201
/**
279202
* @param string ...$apiPackageIds
280203
*
@@ -295,21 +218,6 @@ public function getApiProducts(): array
295218
return $this->apiProducts;
296219
}
297220

298-
/**
299-
* @param string ...$apiProductIds
300-
*
301-
* @return self
302-
*
303-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
304-
* https://github.com/apigee/apigee-client-php/issues/373
305-
*/
306-
public function apiProducts(string ...$apiProductIds): self
307-
{
308-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setApiProducts() instead.', E_USER_DEPRECATED);
309-
310-
return $this->setApiProducts(...$apiProductIds);
311-
}
312-
313221
/**
314222
* @param string ...$apiProductIds
315223
*
@@ -330,21 +238,6 @@ public function getPricingTypes(): array
330238
return $this->pricingTypes;
331239
}
332240

333-
/**
334-
* @param string ...$pricingTypes
335-
*
336-
* @return self
337-
*
338-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
339-
* https://github.com/apigee/apigee-client-php/issues/373
340-
*/
341-
public function pricingTypes(string ...$pricingTypes): self
342-
{
343-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setPricingTypes() instead.', E_USER_DEPRECATED);
344-
345-
return $this->setPricingTypes(...$pricingTypes);
346-
}
347-
348241
/**
349242
* @param string ...$pricingTypes
350243
*
@@ -365,21 +258,6 @@ public function getRatePlanLevels(): array
365258
return $this->ratePlanLevels;
366259
}
367260

368-
/**
369-
* @param string ...$ratePlanLevels
370-
*
371-
* @return self
372-
*
373-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
374-
* https://github.com/apigee/apigee-client-php/issues/373
375-
*/
376-
public function ratePlanLevels(string ...$ratePlanLevels): self
377-
{
378-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setRatePlanLevels() instead.', E_USER_DEPRECATED);
379-
380-
return $this->setRatePlanLevels(...$ratePlanLevels);
381-
}
382-
383261
/**
384262
* @param string ...$ratePlanLevels
385263
*
@@ -424,21 +302,6 @@ public function getShowTransactionType(): bool
424302
return $this->showTransactionType;
425303
}
426304

427-
/**
428-
* @param bool $show
429-
*
430-
* @return self
431-
*
432-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
433-
* https://github.com/apigee/apigee-client-php/issues/373
434-
*/
435-
public function showRevenueSharePercentage(bool $show): self
436-
{
437-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setShowRevenueSharePercentage() instead.', E_USER_DEPRECATED);
438-
439-
return $this->setShowRevenueSharePercentage($show);
440-
}
441-
442305
/**
443306
* @param bool $show
444307
*
@@ -451,21 +314,6 @@ public function setShowRevenueSharePercentage(bool $show): self
451314
return $this;
452315
}
453316

454-
/**
455-
* @param bool $show
456-
*
457-
* @return self
458-
*
459-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
460-
* https://github.com/apigee/apigee-client-php/issues/373
461-
*/
462-
public function showSummary(bool $show): self
463-
{
464-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setShowSummary() instead.', E_USER_DEPRECATED);
465-
466-
return $this->setShowSummary($show);
467-
}
468-
469317
/**
470318
* @param bool $show
471319
*
@@ -478,21 +326,6 @@ public function setShowSummary(bool $show): self
478326
return $this;
479327
}
480328

481-
/**
482-
* @param bool $show
483-
*
484-
* @return self
485-
*
486-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
487-
* https://github.com/apigee/apigee-client-php/issues/373
488-
*/
489-
public function showTransactionDetail(bool $show): self
490-
{
491-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setShowTransactionDetail() instead.', E_USER_DEPRECATED);
492-
493-
return $this->setShowTransactionDetail($show);
494-
}
495-
496329
/**
497330
* @param bool $show
498331
*
@@ -505,21 +338,6 @@ public function setShowTransactionDetail(bool $show): self
505338
return $this;
506339
}
507340

508-
/**
509-
* @param bool $show
510-
*
511-
* @return self
512-
*
513-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
514-
* https://github.com/apigee/apigee-client-php/issues/373
515-
*/
516-
public function showTransactionType(bool $show): self
517-
{
518-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setShowTransactionType() instead.', E_USER_DEPRECATED);
519-
520-
return $this->setShowTransactionType($show);
521-
}
522-
523341
/**
524342
* @param bool $show
525343
*

src/Api/Monetization/Structure/Reports/Criteria/GroupByCriteriaTrait.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,6 @@ public function getGroupBy(): array
3131
return $this->groupBy;
3232
}
3333

34-
/**
35-
* @param string ...$groupBy
36-
*
37-
* @return self
38-
*
39-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
40-
* https://github.com/apigee/apigee-client-php/issues/373
41-
*/
42-
public function groupBy(string ...$groupBy): self
43-
{
44-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setGroupBy() instead.', E_USER_DEPRECATED);
45-
46-
return $this->setGroupBy(...$groupBy);
47-
}
48-
4934
/**
5035
* @param string ...$groupBy
5136
*

src/Api/Monetization/Structure/Reports/Criteria/TransactionTypesCriteriaTrait.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,6 @@ public function getTransactionTypes(): array
3333
return $this->transactionTypes;
3434
}
3535

36-
/**
37-
* @param string ...$transactionTypes
38-
*
39-
* @return self
40-
*
41-
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
42-
* https://github.com/apigee/apigee-client-php/issues/373
43-
*/
44-
public function transactionTypes(string ...$transactionTypes): self
45-
{
46-
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setTransactionTypes() instead.', E_USER_DEPRECATED);
47-
48-
return $this->setTransactionTypes(...$transactionTypes);
49-
}
50-
5136
/**
5237
* @param string ...$transactionTypes
5338
*

0 commit comments

Comments
 (0)