for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OAuth;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
/**
* @ORM\Entity(repositoryClass="OAuth\Repository\ScopeRepository")
* @ORM\Table(name="Scope")
*/
class Scope implements ScopeEntityInterface
{
* @var string $identifier
* @ORM\Id
* @ORM\Column(type="string", length=40)
protected $identifier;
* @var string $description
* @ORM\Column(type="string", length=255)
private $description;
* @return string
public function getIdentifier()
return $this->identifier;
}
* @param string $identifier
public function setIdentifier($identifier)
$this->identifier = $identifier;
public function getDescription(): string
return $this->description;
* @param string $description
public function setDescription(string $description): void
$this->description = $description;
public function jsonSerialize()
return $this->getIdentifier();