src/Entity/ProspectReporting.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\ProspectReportingRepository")
  6.  */
  7. class ProspectReporting
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="datetime")
  17.      */
  18.     private $created;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  21.      * @ORM\JoinColumn(nullable=false)
  22.      */
  23.     private $user;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity="App\Entity\Prospect")
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $prospect;
  29.     /**
  30.      * @ORM\Column(type="string", length=25)
  31.      */
  32.     private $state;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getCreated(): ?\DateTimeInterface
  38.     {
  39.         return $this->created;
  40.     }
  41.     public function setCreated(\DateTimeInterface $created): self
  42.     {
  43.         $this->created $created;
  44.         return $this;
  45.     }
  46.     public function getUser(): ?User
  47.     {
  48.         return $this->user;
  49.     }
  50.     public function setUser(?User $user): self
  51.     {
  52.         $this->user $user;
  53.         return $this;
  54.     }
  55.     public function getProspect(): ?Prospect
  56.     {
  57.         return $this->prospect;
  58.     }
  59.     public function setProspect(?Prospect $prospect): self
  60.     {
  61.         $this->prospect $prospect;
  62.         return $this;
  63.     }
  64.     public function getState(): ?string
  65.     {
  66.         return $this->state;
  67.     }
  68.     public function setState(string $state): self
  69.     {
  70.         $this->state $state;
  71.         return $this;
  72.     }
  73. }