ApiProduct.php in Apigee Edge 8
File
src/Entity/ApiProduct.php
View source
<?php
namespace Drupal\apigee_edge\Entity;
use Apigee\Edge\Api\Management\Entity\ApiProduct as EdgeApiProduct;
use Apigee\Edge\Entity\EntityInterface as EdgeEntityInterface;
use Apigee\Edge\Structure\AttributesProperty;
class ApiProduct extends EdgeEntityBase implements ApiProductInterface {
use RevisioningWorkaroundTrait;
public function __construct(array $values, ?string $entity_type = NULL, ?EdgeEntityInterface $decorated = NULL) {
$entity_type = $entity_type ?? 'api_product';
parent::__construct($values, $entity_type, $decorated);
}
public function id() : ?string {
return parent::id();
}
protected function drupalEntityId() : ?string {
return $this
->getName();
}
protected static function decoratedClass() : string {
return EdgeApiProduct::class;
}
public static function idProperty() : string {
return EdgeApiProduct::idProperty();
}
public function getProxies() : array {
return $this->decorated
->getProxies();
}
public function setProxies(string ...$proxy) : void {
$this->decorated
->setProxies(...$proxy);
}
public function getQuota() : ?string {
return $this->decorated
->getQuota();
}
public function setQuota(string $quota) {
$this->decorated
->setQuota($quota);
}
public function getQuotaInterval() : ?string {
return $this->decorated
->getQuotaInterval();
}
public function setQuotaInterval(string $quota_interval) : void {
$this->decorated
->setQuotaInterval($quota_interval);
}
public function getQuotaTimeUnit() : ?string {
return $this->decorated
->getQuotaTimeUnit();
}
public function setQuotaTimeUnit(string $quota_time_unit) : void {
$this->decorated
->setQuotaTimeUnit($quota_time_unit);
}
public function getApprovalType() : ?string {
return $this->decorated
->getApprovalType();
}
public function setApprovalType(string $approval_type) : void {
$this->decorated
->setApprovalType($approval_type);
}
public function getApiResources() : array {
return $this->decorated
->getApiResources();
}
public function setApiResources(string ...$api_resources) : void {
$this->decorated
->setApiResources($api_resources);
}
public function getAttributes() : AttributesProperty {
return $this->decorated
->getAttributes();
}
public function setAttributes(AttributesProperty $attributes) : void {
$this->decorated
->setAttributes($attributes);
}
public function getAttributeValue(string $attribute) : ?string {
return $this->decorated
->getAttributeValue($attribute);
}
public function setAttribute(string $name, string $value) : void {
$this->decorated
->setAttribute($name, $value);
}
public function hasAttribute(string $name) : bool {
return $this->decorated
->hasAttribute($name);
}
public function deleteAttribute(string $name) : void {
$this->decorated
->deleteAttribute($name);
}
public function getCreatedAt() : ?\DateTimeImmutable {
return $this->decorated
->getCreatedAt();
}
public function getCreatedBy() : ?string {
return $this->decorated
->getCreatedBy();
}
public function getLastModifiedAt() : ?\DateTimeImmutable {
return $this->decorated
->getLastModifiedAt();
}
public function getLastModifiedBy() : ?string {
return $this->decorated
->getLastModifiedBy();
}
public function getDescription() : ?string {
return $this->decorated
->getDescription();
}
public function setDescription(string $description) : void {
$this->decorated
->setDescription($description);
}
public function getDisplayName() : ?string {
return $this->decorated
->getDisplayName();
}
public function setDisplayName(string $display_name) : void {
$this->decorated
->setDisplayName($display_name);
}
public function getEnvironments() : array {
return $this->decorated
->getEnvironments();
}
public function setEnvironments(string ...$environments) : void {
$this->decorated
->setEnvironments(...$environments);
}
public function getName() : ?string {
return $this->decorated
->getName();
}
public function getScopes() : array {
return $this->decorated
->getScopes();
}
public function setScopes(string ...$scopes) : void {
$this->decorated
->setScopes(...$scopes);
}
}