src/Entity/Comment.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\ModuleTest\ModuleTest;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use EightMarq\CoreComponent\Entity\BaseEntity;
  6. /**
  7.  * @ORM\Table(name="comments")
  8.  * @ORM\Entity()
  9.  */
  10. class Comment extends BaseEntity
  11. {
  12.     /**
  13.      * @var string | null
  14.      *
  15.      * @ORM\Column(type="text")
  16.      */
  17.     protected $comment;
  18.     /**
  19.      * @var string | null
  20.      * @ORM\Column(type="string")
  21.      */
  22.     protected $type;
  23.     /**
  24.      * @var ModuleTest | null
  25.      *
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\ModuleTest\ModuleTest", inversedBy="comments")
  27.      */
  28.     protected $moduleTest;
  29.     /**
  30.      * @return string|null
  31.      */
  32.     public function getComment(): ?string
  33.     {
  34.         return $this->comment;
  35.     }
  36.     /**
  37.      * @param string|null $comment
  38.      */
  39.     public function setComment(?string $comment): void
  40.     {
  41.         $this->comment $comment;
  42.     }
  43.     /**
  44.      * @return string|null
  45.      */
  46.     public function getType(): ?string
  47.     {
  48.         return $this->type;
  49.     }
  50.     /**
  51.      * @param string|null $type
  52.      */
  53.     public function setType(?string $type): void
  54.     {
  55.         $this->type $type;
  56.     }
  57.     /**
  58.      * @return ModuleTest|int|null
  59.      */
  60.     public function getModuleTest()
  61.     {
  62.         return $this->moduleTest;
  63.     }
  64.     /**
  65.      * @param ModuleTest|int|null $moduleTest
  66.      */
  67.     public function setModuleTest($moduleTest): void
  68.     {
  69.         $this->moduleTest $moduleTest;
  70.     }
  71. }