src/Entity/Comment.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\CommentRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\ORM\Mapping\Index;
  7. #[ORM\Entity(repositoryClassCommentRepository::class)]
  8. #[Index(name"comment_parent"columns: ["type""par"])]
  9. #[Index(name"comment_user"columns: ["user"])]
  10. #[Index(name"comment_tstamp"columns: ["tstamp"])]
  11. #[Index(name"comment_visible"columns: ["visible"])]
  12. class Comment implements EntityInterface
  13. {
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column(type'integer')]
  17.     private $id;
  18.     #[ORM\Column(type'integer')]
  19.     private $par;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $type;
  22.     #[ORM\Column(type'integer')]
  23.     private $user;
  24.     #[ORM\Column(type'string'length255)]
  25.     private $author;
  26.     #[ORM\Column(type'integer')]
  27.     private $tstamp;
  28.     #[ORM\Column(type'string'length255)]
  29.     private $theme;
  30.     #[ORM\Column(type'text')]
  31.     private $cont;
  32.     #[ORM\Column(type'text')]
  33.     private $answer;
  34.     #[ORM\Column(type'boolean')]
  35.     private $visible;
  36.     #[ORM\Column(type'string'length3)]
  37.     private $lang;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getPar(): ?int
  43.     {
  44.         return $this->par;
  45.     }
  46.     public function setPar(int $par): self
  47.     {
  48.         $this->par $par;
  49.         return $this;
  50.     }
  51.     public function getType(): ?string
  52.     {
  53.         return $this->type;
  54.     }
  55.     public function setType(string $type): self
  56.     {
  57.         $this->type $type;
  58.         return $this;
  59.     }
  60.     public function getUser(): ?int
  61.     {
  62.         return $this->user;
  63.     }
  64.     public function setUser(int $user): self
  65.     {
  66.         $this->user $user;
  67.         return $this;
  68.     }
  69.     public function getAuthor(): ?string
  70.     {
  71.         return $this->author;
  72.     }
  73.     public function setAuthor(string $author): self
  74.     {
  75.         $this->author $author;
  76.         return $this;
  77.     }
  78.     public function getTstamp(): ?int
  79.     {
  80.         return $this->tstamp;
  81.     }
  82.     public function setTstamp(int $tstamp): self
  83.     {
  84.         $this->tstamp $tstamp;
  85.         return $this;
  86.     }
  87.     public function getTheme(): ?string
  88.     {
  89.         return $this->theme;
  90.     }
  91.     public function setTheme(string $theme): self
  92.     {
  93.         $this->theme $theme;
  94.         return $this;
  95.     }
  96.     public function getCont(): ?string
  97.     {
  98.         return $this->cont;
  99.     }
  100.     public function setCont(string $cont): self
  101.     {
  102.         $this->cont $cont;
  103.         return $this;
  104.     }
  105.     public function getAnswer(): ?string
  106.     {
  107.         return $this->answer;
  108.     }
  109.     public function setAnswer(string $answer): self
  110.     {
  111.         $this->answer $answer;
  112.         return $this;
  113.     }
  114.     public function isVisible(): ?bool
  115.     {
  116.         return $this->visible;
  117.     }
  118.     public function setVisible(bool $visible): self
  119.     {
  120.         $this->visible $visible;
  121.         return $this;
  122.     }
  123.     public function getLang(): ?string
  124.     {
  125.         return $this->lang;
  126.     }
  127.     public function setLang(string $lang): self
  128.     {
  129.         $this->lang $lang;
  130.         return $this;
  131.     }
  132. }