src/Entity/OAuth2ClientProfile.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OAuth2ClientProfileRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use League\Bundle\OAuth2ServerBundle\Model\Client;
  7. /**
  8.  * @ORM\Entity(repositoryClass=OAuth2ClientProfileRepository::class)
  9.  */
  10. class OAuth2ClientProfile
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column
  16.      */
  17.     private ?int $id null;
  18.     /**
  19.      * @ORM\OneToOne(cascade={"persist", "remove"})
  20.      * @ORM\JoinColumn(referencedColumnName="identifier", nullable=false)
  21.      */
  22.     private ?Client $client null;
  23.     /**
  24.      * @ORM\Column(length=255)
  25.      */
  26.     private ?string $name null;
  27.     /**
  28.      * @ORM\Column(type=Types::TEXT, nullable=true)
  29.      */
  30.     private ?string $description null;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getClient(): ?Client
  36.     {
  37.         return $this->client;
  38.     }
  39.     public function setClient(Client $client): self
  40.     {
  41.         $this->client $client;
  42.         return $this;
  43.     }
  44.     public function getName(): ?string
  45.     {
  46.         return $this->name;
  47.     }
  48.     public function setName(string $name): self
  49.     {
  50.         $this->name $name;
  51.         return $this;
  52.     }
  53.     public function getDescription(): ?string
  54.     {
  55.         return $this->description;
  56.     }
  57.     public function setDescription(?string $description): self
  58.     {
  59.         $this->description $description;
  60.         return $this;
  61.     }
  62. }