Skip to content

Commit

Permalink
Deprecated methods are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Feb 7, 2025
1 parent 9cac901 commit 2aa1686
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 197 deletions.
167 changes: 0 additions & 167 deletions src/Api/Monetization/Structure/Reports/Criteria/AbstractCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,21 +136,6 @@ public function getCurrencies(): array
return $this->currencies;
}

/**
* @param string ...$currencyIds
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function currencies(string ...$currencyIds): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setCurrencies() instead.', E_USER_DEPRECATED);

return $this->setCurrencies(...$currencyIds);
}

/**
* @param string ...$currencyIds
*
Expand All @@ -171,23 +156,6 @@ public function getCurrencyOption(): ?string
return $this->currencyOption;
}

/**
* @param string|null $currencyOption
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function currencyOption(?string $currencyOption): self
{
// This tweak allows to reset the previously configured currency option
// by calling this method with an empty string or null.
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setCurrencyOption() instead.', E_USER_DEPRECATED);

return $this->setCurrencyOption($currencyOption);
}

/**
* @param string|null $currencyOption
*
Expand All @@ -202,21 +170,6 @@ public function setCurrencyOption(?string $currencyOption): self
return $this;
}

/**
* @param string ...$developerIds
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function developers(string ...$developerIds): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setDevelopers() instead.', E_USER_DEPRECATED);

return $this->setDevelopers(...$developerIds);
}

/**
* @param string ...$developerIds
*
Expand Down Expand Up @@ -245,21 +198,6 @@ public function getApiPackages(): array
return $this->apiPackages;
}

/**
* @param string ...$apiPackageIds
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function apiPackages(string ...$apiPackageIds): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setApiPackages() instead.', E_USER_DEPRECATED);

return $this->setApiPackages(...$apiPackageIds);
}

/**
* @param string ...$apiPackageIds
*
Expand All @@ -280,21 +218,6 @@ public function getApiProducts(): array
return $this->apiProducts;
}

/**
* @param string ...$apiProductIds
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function apiProducts(string ...$apiProductIds): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setApiProducts() instead.', E_USER_DEPRECATED);

return $this->setApiProducts(...$apiProductIds);
}

/**
* @param string ...$apiProductIds
*
Expand All @@ -315,21 +238,6 @@ public function getPricingTypes(): array
return $this->pricingTypes;
}

/**
* @param string ...$pricingTypes
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function pricingTypes(string ...$pricingTypes): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setPricingTypes() instead.', E_USER_DEPRECATED);

return $this->setPricingTypes(...$pricingTypes);
}

/**
* @param string ...$pricingTypes
*
Expand All @@ -350,21 +258,6 @@ public function getRatePlanLevels(): array
return $this->ratePlanLevels;
}

/**
* @param string ...$ratePlanLevels
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function ratePlanLevels(string ...$ratePlanLevels): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setRatePlanLevels() instead.', E_USER_DEPRECATED);

return $this->setRatePlanLevels(...$ratePlanLevels);
}

/**
* @param string ...$ratePlanLevels
*
Expand Down Expand Up @@ -409,21 +302,6 @@ public function getShowTransactionType(): bool
return $this->showTransactionType;
}

/**
* @param bool $show
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function showRevenueSharePercentage(bool $show): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setShowRevenueSharePercentage() instead.', E_USER_DEPRECATED);

return $this->setShowRevenueSharePercentage($show);
}

/**
* @param bool $show
*
Expand All @@ -436,21 +314,6 @@ public function setShowRevenueSharePercentage(bool $show): self
return $this;
}

/**
* @param bool $show
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function showSummary(bool $show): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setShowSummary() instead.', E_USER_DEPRECATED);

return $this->setShowSummary($show);
}

/**
* @param bool $show
*
Expand All @@ -463,21 +326,6 @@ public function setShowSummary(bool $show): self
return $this;
}

/**
* @param bool $show
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function showTransactionDetail(bool $show): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setShowTransactionDetail() instead.', E_USER_DEPRECATED);

return $this->setShowTransactionDetail($show);
}

/**
* @param bool $show
*
Expand All @@ -490,21 +338,6 @@ public function setShowTransactionDetail(bool $show): self
return $this;
}

/**
* @param bool $show
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function showTransactionType(bool $show): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setShowTransactionType() instead.', E_USER_DEPRECATED);

return $this->setShowTransactionType($show);
}

/**
* @param bool $show
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,6 @@ public function getGroupBy(): array
return $this->groupBy;
}

/**
* @param string ...$groupBy
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function groupBy(string ...$groupBy): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setGroupBy() instead.', E_USER_DEPRECATED);

return $this->setGroupBy(...$groupBy);
}

/**
* @param string ...$groupBy
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,6 @@ public function getTransactionTypes(): array
return $this->transactionTypes;
}

/**
* @param string ...$transactionTypes
*
* @return self
*
* @deprecated in 3.0.7, will be removed in 4.0.0. No longer needed.
* https://github.com/apigee/apigee-client-php/issues/373
*/
public function transactionTypes(string ...$transactionTypes): self
{
trigger_error(__METHOD__ . ' is deprecated in 3.0.7, will be removed in 4.0.0: use setTransactionTypes() instead.', E_USER_DEPRECATED);

return $this->setTransactionTypes(...$transactionTypes);
}

/**
* @param string ...$transactionTypes
*
Expand Down

0 comments on commit 2aa1686

Please sign in to comment.