Skip to content

Commit

Permalink
Changing return types after fcddaeb.
Browse files Browse the repository at this point in the history
Signed-off-by: Dezső Biczó <mxr576@gmail.com>
  • Loading branch information
mxr576 committed Jul 18, 2018
1 parent 051b5ab commit a3b5172
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
7 changes: 3 additions & 4 deletions src/Api/Management/Controller/AppCredentialController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
use Apigee\Edge\Controller\StatusAwareEntityControllerTrait;
use Apigee\Edge\Denormalizer\AttributesPropertyDenormalizer;
use Apigee\Edge\Denormalizer\CredentialProductDenormalizer;
use Apigee\Edge\Entity\EntityInterface;
use Apigee\Edge\Normalizer\CredentialProductNormalizer;
use Apigee\Edge\Structure\AttributesProperty;

Expand Down Expand Up @@ -130,7 +129,7 @@ public function setApiProductStatus(string $consumerKey, string $apiProduct, str
/**
* @inheritdoc
*/
public function deleteApiProduct(string $consumerKey, string $apiProduct): EntityInterface
public function deleteApiProduct(string $consumerKey, string $apiProduct): AppCredentialInterface
{
$uri = $this->getBaseEndpointUri()->withPath("{$this->getBaseEndpointUri()}/keys/{$consumerKey}/apiproducts/{$apiProduct}");
$response = $this->client->delete($uri);
Expand Down Expand Up @@ -162,7 +161,7 @@ public function overrideScopes(string $consumerKey, array $scopes): AppCredentia
/**
* {@inheritdoc}
*/
public function load(string $entityId): EntityInterface
public function load(string $entityId): AppCredentialInterface
{
$response = $this->client->get($this->getEntityEndpointUri($entityId));

Expand All @@ -176,7 +175,7 @@ public function load(string $entityId): EntityInterface
/**
* {@inheritdoc}
*/
public function delete(string $entityId): EntityInterface
public function delete(string $entityId): AppCredentialInterface
{
$response = $this->client->delete($this->getEntityEndpointUri($entityId));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Apigee\Edge\Api\Management\Entity\AppCredentialInterface;
use Apigee\Edge\Controller\EntityControllerInterface;
use Apigee\Edge\Controller\StatusAwareEntityControllerInterface;
use Apigee\Edge\Entity\EntityInterface;
use Apigee\Edge\Structure\AttributesProperty;

/**
Expand Down Expand Up @@ -128,9 +127,9 @@ public function setApiProductStatus(string $consumerKey, string $apiProduct, str
*
* @param string $consumerKey
*
* @return \Apigee\Edge\Entity\EntityInterface
* @return \Apigee\Edge\Api\Management\Entity\AppCredentialInterface
*/
public function delete(string $consumerKey): EntityInterface;
public function delete(string $consumerKey): AppCredentialInterface;

/**
* Remove API product for a consumer key for an developer app.
Expand All @@ -140,9 +139,9 @@ public function delete(string $consumerKey): EntityInterface;
* @param string $consumerKey
* @param string $apiProduct
*
* @return \Apigee\Edge\Entity\EntityInterface
* @return \Apigee\Edge\Api\Management\Entity\AppCredentialInterface
*/
public function deleteApiProduct(string $consumerKey, string $apiProduct): EntityInterface;
public function deleteApiProduct(string $consumerKey, string $apiProduct): AppCredentialInterface;

/**
* Get key details for a developer app.
Expand All @@ -151,9 +150,9 @@ public function deleteApiProduct(string $consumerKey, string $apiProduct): Entit
*
* @param string $consumerKey
*
* @return \Apigee\Edge\Entity\EntityInterface
* @return \Apigee\Edge\Api\Management\Entity\AppCredentialInterface
*/
public function load(string $consumerKey);
public function load(string $consumerKey): AppCredentialInterface;

/**
* Modify (override) scopes of a customer key.
Expand Down

0 comments on commit a3b5172

Please sign in to comment.