src/Entity/LegalEntity.php line 18

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Entity\Mapped\NamedEntity;
  5. use App\Repository\LegalEntityRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. #[ORM\Entity(
  9.     repositoryClassLegalEntityRepository::class
  10. )]
  11. #[ORM\Table(
  12.     name'legal_entity'
  13. )]
  14. class LegalEntity extends NamedEntity
  15. {
  16.     #[ORM\Column(
  17.         name'remark',
  18.         type'text',
  19.         nullabletrue
  20.     )]
  21.     #[Assert\NotBlank(
  22.         groups: ['action']
  23.     )]
  24.     private ?string $remark null;
  25.     public function getRemark(): ?string
  26.     {
  27.         return $this->remark;
  28.     }
  29.     public function setRemark(?string $remark): self
  30.     {
  31.         $this->remark $remark;
  32.         return $this;
  33.     }
  34. }