src/Entity/Common/Owner.php line 9

  1. <?php
  2. namespace App\Entity\Common;
  3. use App\Model\Common\OwnerInterface;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Embeddable]
  6. class Owner implements OwnerInterface
  7. {
  8.     /**
  9.      * @var ?string
  10.      */
  11.     #[ORM\Column(type'string'length36nullabletrue)]
  12.     private ?string $uuid null;
  13.     /**
  14.      * @var bool
  15.      */
  16.     #[ORM\Column(type'boolean'options: ['default' => true])]
  17.     private bool $active true;
  18.     /**
  19.      * @var bool
  20.      */
  21.     #[ORM\Column(type'boolean'options: ['default' => false])]
  22.     private bool $deleted false;
  23.     /**
  24.      * @return string|null
  25.      */
  26.     public function getUuid(): ?string
  27.     {
  28.         return $this->uuid;
  29.     }
  30.     /**
  31.      * @param string|null $uuid
  32.      */
  33.     public function setUuid(?string $uuid): void
  34.     {
  35.         $this->uuid $uuid;
  36.     }
  37.     /**
  38.      * @return bool
  39.      */
  40.     public function isActive(): bool
  41.     {
  42.         return $this->active;
  43.     }
  44.     /**
  45.      * @param bool $active
  46.      */
  47.     public function setActive(bool $active): void
  48.     {
  49.         $this->active $active;
  50.     }
  51.     /**
  52.      * @return bool
  53.      */
  54.     public function isDeleted(): bool
  55.     {
  56.         return $this->deleted;
  57.     }
  58.     /**
  59.      * @param bool $deleted
  60.      */
  61.     public function setDeleted(bool $deleted): void
  62.     {
  63.         $this->deleted $deleted;
  64.     }
  65. }