Skip to content

Commit

Permalink
Removed support of AttributesProperty to ApiProduct
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Jul 25, 2024
1 parent b4dbe23 commit 385b355
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/Api/ApigeeX/Entity/ApiProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
namespace Apigee\Edge\Api\ApigeeX\Entity;

use Apigee\Edge\Api\Monetization\Entity\Entity;
use Apigee\Edge\Entity\Property\AttributesPropertyAwareTrait;
use Apigee\Edge\Entity\Property\DescriptionPropertyAwareTrait;
use Apigee\Edge\Entity\Property\DisplayNamePropertyAwareTrait;
use Apigee\Edge\Entity\Property\EnvironmentsPropertyAwareTrait;
use Apigee\Edge\Entity\Property\NamePropertyAwareTrait;

class ApiProduct extends Entity implements ApiProductInterface
{
use AttributesPropertyAwareTrait;
use DescriptionPropertyAwareTrait;
use DisplayNamePropertyAwareTrait;
use EnvironmentsPropertyAwareTrait;
Expand Down
2 changes: 0 additions & 2 deletions src/Api/ApigeeX/Entity/ApiProductInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@

namespace Apigee\Edge\Api\ApigeeX\Entity;

use Apigee\Edge\Entity\Property\AttributesPropertyInterface;
use Apigee\Edge\Entity\Property\DescriptionPropertyInterface;
use Apigee\Edge\Entity\Property\DisplayNamePropertyInterface;
use Apigee\Edge\Entity\Property\EnvironmentsPropertyInterface;
use Apigee\Edge\Entity\Property\NamePropertyInterface;

interface ApiProductInterface extends
AttributesPropertyInterface,
DescriptionPropertyInterface,
DisplayNamePropertyInterface,
EnvironmentsPropertyInterface,
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Property/AttributesPropertyAwareTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ trait AttributesPropertyAwareTrait
/**
* {@inheritdoc}
*/
public function getAttributes(): ?AttributesProperty
public function getAttributes(): AttributesProperty
{
return $this->attributes;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Property/AttributesPropertyInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface AttributesPropertyInterface
/**
* @return \Apigee\Edge\Structure\AttributesProperty
*/
public function getAttributes(): ?AttributesProperty;
public function getAttributes(): AttributesProperty;

/**
* @param \Apigee\Edge\Structure\AttributesProperty $attributes
Expand Down

0 comments on commit 385b355

Please sign in to comment.