src/Entity/Proposition.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PropositionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PropositionRepository::class)
  7.  */
  8. class Proposition
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Lot::class, inversedBy="propositions")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $lot;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Prospect::class, inversedBy="propositions")
  23.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE" )
  24.      */
  25.     private $prospect;
  26.     /**
  27.      * @ORM\Column(type="boolean", options={"default":true})
  28.      */
  29.     private $activeProposition true;
  30.     /**
  31.      * @ORM\Column(type="datetime")
  32.      */
  33.     private $dateheure;
  34.     public function __construct() {
  35.         $this->dateheure = new \DateTime("now");
  36.         $this->activeProposition true;
  37.     }
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getLot(): ?Lot
  43.     {
  44.         return $this->lot;
  45.     }
  46.     public function setLot(?Lot $lot): self
  47.     {
  48.         $this->lot $lot;
  49.         return $this;
  50.     }
  51.     public function getProspect(): ?Prospect
  52.     {
  53.         return $this->prospect;
  54.     }
  55.     public function setProspect(?Prospect $prospect): self
  56.     {
  57.         $this->prospect $prospect;
  58.         return $this;
  59.     }
  60.     public function isActiveProposition(): bool
  61.     {
  62.         return $this->activeProposition;
  63.     }
  64.     
  65.     public function setActiveProposition(bool $activeProposition): self
  66.     {
  67.         $this->activeProposition $activeProposition;
  68.         return $this;
  69.     }
  70.     public function getDateheure(): ?\DateTimeInterface
  71.     {
  72.         return $this->dateheure;
  73.     }
  74.     public function setDateheure(\DateTimeInterface $dateheure): self
  75.     {
  76.         $this->dateheure $dateheure;
  77.         return $this;
  78.     }
  79.     public function getVisite(): ?int
  80.     {
  81.         return $this->visite;
  82.     }
  83.     public function setVisite(?int $visite): self
  84.     {
  85.         $this->visite $visite;
  86.         return $this;
  87.     }
  88. }