You are here

public function OpenIdConnectScopeEntity::__construct in Simple OAuth (OAuth2) & OpenID Connect 5.x

OpenIdConnectScopeEntity constructor.

Parameters

string $identifier: The scope identifier.

string $name: The scope name.

Overrides ScopeEntity::__construct

File

src/Entities/OpenIdConnectScopeEntity.php, line 21

Class

OpenIdConnectScopeEntity
The OpenID Connect scope entity.

Namespace

Drupal\simple_oauth\Entities

Code

public function __construct($identifier, $name) {
  $this
    ->setIdentifier($identifier);
  $this->name = $name;
}