src/Entity/Notes.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\SuperClass\BaseEntity;
  4. use App\Repository\NotesRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=NotesRepository::class)
  8. */
  9. class Notes extends BaseEntity
  10. {
  11. /**
  12. * @ORM\Column(type="text")
  13. */
  14. private $message;
  15. public function getMessage(): ?string
  16. {
  17. return $this->message;
  18. }
  19. public function setMessage(string $message): self
  20. {
  21. $this->message = $message;
  22. return $this;
  23. }
  24. public function getProduct(): ?Product
  25. {
  26. return $this->product;
  27. }
  28. public function setProduct(?Product $product): self
  29. {
  30. $this->product = $product;
  31. return $this;
  32. }
  33. }