src/Entity/Website/PostType/PostTypeMeta.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Website\PostType;
  3. use App\Entity\BaseEntity;
  4. use App\Repository\Website\PostType\PostTypeMetaRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  8. #[ORM\Entity(repositoryClassPostTypeMetaRepository::class)]
  9. class PostTypeMeta extends BaseEntity
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\Column(type'guid'uniquetrue)]
  13.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  14.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  15.     private ?string $id;
  16.     #[ORM\ManyToOne(inversedBy'postTypeMetas')]
  17.     #[ORM\JoinColumn(nullablefalse)]
  18.     private ?PostType $postType null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $name null;
  21.     #[ORM\Column(typeTypes::TEXT)]
  22.     private ?string $value null;
  23.     public function getId(): ?string
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getPostType(): ?PostType
  28.     {
  29.         return $this->postType;
  30.     }
  31.     public function setPostType(?PostType $postType): static
  32.     {
  33.         $this->postType $postType;
  34.         return $this;
  35.     }
  36.     public function getName(): ?string
  37.     {
  38.         return $this->name;
  39.     }
  40.     public function setName(string $name): static
  41.     {
  42.         $this->name $name;
  43.         return $this;
  44.     }
  45.     public function getValue(): ?string
  46.     {
  47.         return $this->value;
  48.     }
  49.     public function setValue(string $value): static
  50.     {
  51.         $this->value $value;
  52.         return $this;
  53.     }
  54. }