src/Entity/Gos/UserDocumentation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\Gos\UserDocumentationRepository")
  7.  */
  8. class UserDocumentation
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      * @Assert\NotBlank
  19.      */
  20.     private $title;
  21.     /**
  22.      * @ORM\Column(type="text")
  23.      * @Assert\NotBlank
  24.      */
  25.     private $description;
  26.     /**
  27.      * @ORM\Column(type="string", length=191, unique=true)
  28.      * @Assert\NotBlank
  29.      */
  30.     private $sidebarIdentifier;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getTitle(): ?string
  36.     {
  37.         return $this->title;
  38.     }
  39.     public function setTitle(string $title): self
  40.     {
  41.         $this->title $title;
  42.         return $this;
  43.     }
  44.     public function getDescription(): ?string
  45.     {
  46.         return $this->description;
  47.     }
  48.     public function setDescription(string $description): self
  49.     {
  50.         $this->description $description;
  51.         return $this;
  52.     }
  53.     public function getSidebarIdentifier(): ?string
  54.     {
  55.         return $this->sidebarIdentifier;
  56.     }
  57.     public function setSidebarIdentifier(string $sidebarIdentifier): self
  58.     {
  59.         $this->sidebarIdentifier $sidebarIdentifier;
  60.         return $this;
  61.     }
  62. }