| Total Complexity | 9 |
| Total Lines | 81 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Comment extends AppEntity |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @ORM\Id() |
||
| 15 | * @ORM\GeneratedValue() |
||
| 16 | * @ORM\Column(type="integer") |
||
| 17 | */ |
||
| 18 | private $id; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @ORM\Column(type="text") |
||
| 22 | */ |
||
| 23 | private $comment; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @ORM\Column(type="datetime") |
||
| 27 | * @Gedmo\Timestampable(on="create") |
||
| 28 | */ |
||
| 29 | private $createdAt; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @ORM\ManyToOne(targetEntity="App\Entity\Trick", inversedBy="comments") |
||
| 33 | */ |
||
| 34 | private $trick; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="Comments") |
||
| 38 | */ |
||
| 39 | private $user; |
||
| 40 | |||
| 41 | public function getId(): ?int |
||
| 42 | { |
||
| 43 | return $this->id; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getComment(): ?string |
||
| 47 | { |
||
| 48 | return $this->comment; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function setComment(string $comment): self |
||
| 56 | } |
||
| 57 | |||
| 58 | public function getCreatedAt(): ?\DateTimeInterface |
||
| 59 | { |
||
| 60 | return $this->createdAt; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function setCreatedAt(\DateTimeInterface $createdAt): self |
||
| 68 | } |
||
| 69 | |||
| 70 | public function getTrick(): ?Trick |
||
| 71 | { |
||
| 72 | return $this->trick; |
||
| 73 | } |
||
| 74 | |||
| 75 | public function setTrick(?Trick $trick): self |
||
| 76 | { |
||
| 77 | $this->trick = $trick; |
||
| 78 | |||
| 79 | return $this; |
||
| 80 | } |
||
| 81 | |||
| 82 | public function getUser(): ?User |
||
| 85 | } |
||
| 86 | |||
| 87 | public function setUser(?User $user): self |
||
| 92 | } |
||
| 93 | } |
||
| 94 |