You are here

public function App::__construct in Apigee Edge 8

App constructor.

Parameters

array $values: An array of values to set, keyed by property name.

null|string $entity_type: Type of the entity. It is optional because constructor sets its default value.

\Apigee\Edge\Entity\EntityInterface|null $decorated: The SDK entity that this Drupal entity decorates.

Overrides AttributesAwareFieldableEdgeEntityBase::__construct

2 calls to App::__construct()
DeveloperApp::__construct in src/Entity/DeveloperApp.php
DeveloperApp constructor.
TeamApp::__construct in modules/apigee_edge_teams/src/Entity/TeamApp.php
TeamApp constructor.
2 methods override App::__construct()
DeveloperApp::__construct in src/Entity/DeveloperApp.php
DeveloperApp constructor.
TeamApp::__construct in modules/apigee_edge_teams/src/Entity/TeamApp.php
TeamApp constructor.

File

src/Entity/App.php, line 53

Class

App
Base class for App Drupal entities.

Namespace

Drupal\apigee_edge\Entity

Code

public function __construct(array $values, string $entity_type, ?EdgeEntityInterface $decorated = NULL) {

  // Credentials should not be cached.
  unset($values['credentials']);

  /** @var \Apigee\Edge\Api\Management\Entity\App $decorated */
  if ($decorated) {
    $decorated = clone $decorated;
    $decorated
      ->setCredentials();
  }
  parent::__construct($values, $entity_type, $decorated);
}