concrete/src/Api/OAuth/Controller.php
private function inflateType($identifier, $type = Scope::class)
    {
        if ($identifier === null) {
            return null;
        }

        return $this->entityManager->find($type, $identifier);
    }
private function inflateType($identifier, $type = Scope::class)
    {
        if ($identifier === null) {
            return null;
        }

        return $this->entityManager->find($type, $identifier);
    }
private function inflateType ( $ identifier , $ type = Scope :: class ) { if ( $ identifier === null ) { return null ; } return $ this -> entityManager -> find ( $ type , $ identifier ) ; }
Inflate an identifier into a specific type

@param int|string|null $identifier
@param string $type
@return object|null The inflated entity
Inflate an identifier into a specific type