src/Entity/ProspectFeedback.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\ProspectFeedbackRepository")
  6.  * @ORM\Table(name="prospect_feedback")
  7.  */
  8. class ProspectFeedback
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\OneToOne(targetEntity="App\Entity\Prospect", cascade={"persist", "remove"})
  18.      */
  19.     private $prospect;
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $value;
  24.     /**
  25.      * @ORM\Column(type="text", nullable=true)
  26.      */
  27.     private $comment;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getProspect(): ?Prospect
  33.     {
  34.         return $this->prospect;
  35.     }
  36.     public function setProspect(?Prospect $prospect): self
  37.     {
  38.         $this->prospect $prospect;
  39.         return $this;
  40.     }
  41.     public function getValue(): ?int
  42.     {
  43.         return $this->value;
  44.     }
  45.     public function setValue(int $value): self
  46.     {
  47.         $this->value $value;
  48.         return $this;
  49.     }
  50.     public function getComment(): ?string
  51.     {
  52.         return $this->comment;
  53.     }
  54.     public function setComment(?string $comment): self
  55.     {
  56.         $this->comment $comment;
  57.         return $this;
  58.     }
  59. }