<?php
namespace App\Entity;
use App\Repository\OAuth2ClientProfileRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use League\Bundle\OAuth2ServerBundle\Model\Client;
/**
* @ORM\Entity(repositoryClass=OAuth2ClientProfileRepository::class)
*/
class OAuth2ClientProfile
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column
*/
private ?int $id = null;
/**
* @ORM\OneToOne(cascade={"persist", "remove"})
* @ORM\JoinColumn(referencedColumnName="identifier", nullable=false)
*/
private ?Client $client = null;
/**
* @ORM\Column(length=255)
*/
private ?string $name = null;
/**
* @ORM\Column(type=Types::TEXT, nullable=true)
*/
private ?string $description = null;
public function getId(): ?int
{
return $this->id;
}
public function getClient(): ?Client
{
return $this->client;
}
public function setClient(Client $client): self
{
$this->client = $client;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
}