52 lines
991 B
PHP
52 lines
991 B
PHP
<?php
|
|
|
|
namespace App\Entity;
|
|
|
|
use App\Repository\NotesRepository;
|
|
use Doctrine\DBAL\Types\Types;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
#[ORM\Entity(repositoryClass: NotesRepository::class)]
|
|
#[ORM\Cache(usage: 'NONSTRICT_READ_WRITE', region: 'default_cache')]
|
|
class Notes
|
|
{
|
|
#[ORM\Id]
|
|
#[ORM\GeneratedValue]
|
|
#[ORM\Column]
|
|
private ?int $id = null;
|
|
|
|
#[ORM\Column]
|
|
private ?int $clientId = null;
|
|
|
|
#[ORM\Column(type: Types::TEXT)]
|
|
private ?string $description = null;
|
|
|
|
public function getId(): ?int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function getClientId(): ?int
|
|
{
|
|
return $this->clientId;
|
|
}
|
|
|
|
public function setClientId(?int $clientId): void
|
|
{
|
|
$this->clientId = $clientId;
|
|
}
|
|
|
|
|
|
public function getDescription(): ?string
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
public function setDescription(string $description): static
|
|
{
|
|
$this->description = $description;
|
|
|
|
return $this;
|
|
}
|
|
}
|