for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\Hello\Models\Scopes;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
/**
* Class Tokens
* @package ByTIC\Hello\Models\Scopes
*/
class Scopes extends \Nip\Records\RecordManager implements ScopeRepositoryInterface
{
* Return information about a scope.
*
* @param string $identifier The scope identifier
* @return ScopeEntityInterface
public function getScopeEntityByIdentifier($identifier)
// TODO: Implement getScopeEntityByIdentifier() method.
}
* Given a client, grant type and optional user identifier validate the set of scopes requested are valid and optionally
* append additional scopes or remove requested scopes.
* @param ScopeEntityInterface[] $scopes
* @param string $grantType
* @param ClientEntityInterface $clientEntity
* @param null|string $userIdentifier
* @return ScopeEntityInterface[]
public function finalizeScopes(
array $scopes,
$grantType,
ClientEntityInterface $clientEntity,
$userIdentifier = null
) {
// TODO: Implement finalizeScopes() method.
return [];
/** @noinspection PhpMissingParentCallCommonInspection
* @inheritDoc
protected function generateTable()
return 'oauth_scopes';