Skip to content

Commit

Permalink
Files fixed by PHP CS Fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Dec 28, 2023
1 parent 8ac0603 commit be4c4a2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class CompanyEligibleRatePlanController extends EligibleRatePlanController
*
* @param string $companyName
* @param string $organization
* @param \Apigee\Edge\ClientInterface $client
* @param ClientInterface $client
* @param \Apigee\Edge\Serializer\EntitySerializerInterface|null $entitySerializer
*/
public function __construct(string $companyName, string $organization, ClientInterface $client, ?EntitySerializerInterface $entitySerializer = null)
Expand Down Expand Up @@ -83,4 +83,4 @@ protected function getEligibleRatePlanEndpoint(): UriInterface
// https://apidocs.apigee.com/docs/monetization/1/routes/mint/organizations/%7Borg_name%7D/companies/%7Bcompany_id%7D/eligible-products/get
return $this->client->getUriFactory()->createUri("/mint/organizations/{$this->organization}/companies/{$this->companyName}/eligible-products");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ abstract class EligibleRatePlanController extends OrganizationAwareEntityControl
* EligibleRatePlanController constructor.
*
* @param string $organization
* @param \Apigee\Edge\ClientInterface $client
* @param ClientInterface $client
* @param \Apigee\Edge\Serializer\EntitySerializerInterface|null $entitySerializer
*/
public function __construct(string $organization, ClientInterface $client, ?EntitySerializerInterface $entitySerializer = null)
Expand All @@ -62,7 +62,7 @@ public function getAllEligibleRatePlans(): array
public function acceptRatePlan(RatePlanInterface $ratePlan, DateTimeImmutable $startDate, ?DateTimeImmutable $endDate = null, ?int $quotaTarget = null, ?bool $suppressWarning = null, ?bool $waveTerminationCharge = null): AcceptedRatePlanInterface
{
$rc = new ReflectionClass($this->getEntityClass());
/** @var \Apigee\Edge\Api\Monetization\Entity\AcceptedRatePlanInterface $acceptedRatePlan */
/** @var AcceptedRatePlanInterface $acceptedRatePlan */
$acceptedRatePlan = $rc->newInstance(
[
'ratePlan' => $ratePlan,
Expand Down Expand Up @@ -119,7 +119,7 @@ public function updateSubscription(AcceptedRatePlanInterface $acceptedRatePlan,
* API products for which a company has accepted a rate plan.
* API products that do not have a published rate plan.
*
* @return \Psr\Http\Message\UriInterface
* @return UriInterface
*/
abstract protected function getEligibleRatePlanEndpoint(): UriInterface;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public function getAllEligibleRatePlans(): array;
/**
* Accepts a rate plan.
*
* @param \Apigee\Edge\Api\Monetization\Entity\RatePlanInterface $ratePlan
* @param RatePlanInterface $ratePlan
* The rate plan to be accepted.
* @param \DateTimeImmutable $startDate
* @param DateTimeImmutable $startDate
* Date when the rate plan starts.
* @param \DateTimeImmutable|null $endDate
* @param DateTimeImmutable|null $endDate
* Date when the rate plan ends.
* @param int|null $quotaTarget
* (This property is valid for adjustable notification rate plans only.)
Expand All @@ -61,14 +61,14 @@ public function getAllEligibleRatePlans(): array;
* Flag that specifies whether termination fees are waved when an active
* rate plan is terminated as part of activating the new rate plan.
*
* @return \Apigee\Edge\Api\Monetization\Entity\AcceptedRatePlanInterface
* @return AcceptedRatePlanInterface
*/
public function acceptRatePlan(RatePlanInterface $ratePlan, DateTimeImmutable $startDate, ?DateTimeImmutable $endDate = null, ?int $quotaTarget = null, ?bool $suppressWarning = null, ?bool $waveTerminationCharge = null): AcceptedRatePlanInterface;

/**
* Update a rate plan that has been accepted by a developer.
*
* @param \Apigee\Edge\Api\Monetization\Entity\AcceptedRatePlanInterface $acceptedRatePlan
* @param AcceptedRatePlanInterface $acceptedRatePlan
* Previously accepted rate plan that should be modified.
* @param bool|null $suppressWarning
* Flag that specifies whether to suppress the error if the developer
Expand Down
2 changes: 1 addition & 1 deletion src/Api/Monetization/Entity/CompanyEligibleRatePlan.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
class CompanyEligibleRatePlan extends AcceptedRatePlan implements CompanyEligibleRatePlanInterface
{
use CompanyPropertyAwareTrait;
}
}

0 comments on commit be4c4a2

Please sign in to comment.