public function getScopeEntityByIdentifier($identifier)
    {
        if (!empty($this::SCOPES[$identifier])) {
            return $this->App->Di->get(ScopeEntity::class, ['identifier' => $identifier]);
        }
    }
public function getScopeEntityByIdentifier($identifier)
    {
        if (!empty($this::SCOPES[$identifier])) {
            return $this->App->Di->get(ScopeEntity::class, ['identifier' => $identifier]);
        }
    }
public function getScopeEntityByIdentifier ( $ identifier ) { if ( ! empty ( $ this :: SCOPES [ $ identifier ] ) ) { return $ this -> App -> Di -> get ( ScopeEntity :: class , [ 'identifier' => $ identifier ] ) ; } }
Get scope entity.

@since 17xxxx OAuth scope repository.

@param string $identifier Identifier.

@return ScopeEntity|null Scope entity.
Get scope entity .