src/Entity/Link.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LinkRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassLinkRepository::class)]
  6. class Link
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $value null;
  14.     #[ORM\Column(length255)]
  15.     private ?string $name null;
  16.     #[ORM\Column(type'boolean')]
  17.     private bool $linkStatus false;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getValue(): ?string
  23.     {
  24.         return $this->value;
  25.     }
  26.     public function setValue(string $value): static
  27.     {
  28.         $this->value $value;
  29.         return $this;
  30.     }
  31.     public function getName(): ?string
  32.     {
  33.         return $this->name;
  34.     }
  35.     public function setName(string $name): static
  36.     {
  37.         $this->name $name;
  38.         return $this;
  39.     }
  40.     public function getLinkStatus(): ?bool
  41.     {
  42.         return $this->linkStatus;
  43.     }
  44.     /**
  45.      * @param bool $linkStatus
  46.      * @return $this
  47.      */
  48.     public function setLinkStatus(bool $linkStatus): self
  49.     {
  50.         $this->linkStatus $linkStatus;
  51.         return $this;
  52.     }
  53. }