Skip to content

Commit

Permalink
Depreciated non-setter methods and will be removed in 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-intelli committed Sep 12, 2024
1 parent 2881cfc commit 8092c99
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 0 deletions.
182 changes: 182 additions & 0 deletions src/Api/Monetization/Structure/Reports/Criteria/AbstractCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,21 @@ public function getApps(): array
return $this->apps;
}

/**
* @param string ...$appIds
*
* @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 apps(string ...$appIds): self
{
$this->apps = $appIds;

return $this;
}

/**
* @param string ...$appIds
*
Expand All @@ -136,6 +151,21 @@ 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
{
$this->currencies = $currencyIds;

return $this;
}

/**
* @param string ...$currencyIds
*
Expand All @@ -156,6 +186,23 @@ 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.
$this->currencyOption = $currencyOption;

return $this;
}

/**
* @param string|null $currencyOption
*
Expand All @@ -170,6 +217,21 @@ 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
{
$this->developers = $developerIds;

return $this;
}

/**
* @param string ...$developerIds
*
Expand Down Expand Up @@ -198,6 +260,21 @@ 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
{
$this->apiPackages = $apiPackageIds;

return $this;
}

/**
* @param string ...$apiPackageIds
*
Expand All @@ -218,6 +295,21 @@ 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
{
$this->apiProducts = $apiProductIds;

return $this;
}

/**
* @param string ...$apiProductIds
*
Expand All @@ -238,6 +330,21 @@ 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
{
$this->pricingTypes = $pricingTypes;

return $this;
}

/**
* @param string ...$pricingTypes
*
Expand All @@ -258,6 +365,21 @@ 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
{
$this->ratePlanLevels = $ratePlanLevels;

return $this;
}

/**
* @param string ...$ratePlanLevels
*
Expand Down Expand Up @@ -302,6 +424,21 @@ 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
{
$this->showRevenueSharePercentage = $show;

return $this;
}

/**
* @param bool $show
*
Expand All @@ -314,6 +451,21 @@ 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
{
$this->showSummary = $show;

return $this;
}

/**
* @param bool $show
*
Expand All @@ -326,6 +478,21 @@ 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
{
$this->showTransactionDetail = $show;

return $this;
}

/**
* @param bool $show
*
Expand All @@ -338,6 +505,21 @@ 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
{
$this->showTransactionType = $show;

return $this;
}

/**
* @param bool $show
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ 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
{
$this->groupBy = $groupBy;

return $this;
}

/**
* @param string ...$groupBy
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,21 @@ 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
{
$this->transactionTypes = $transactionTypes;

return $this;
}

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

0 comments on commit 8092c99

Please sign in to comment.