offre = $id_offre; $this->isPromo = false; $this->fruit = false; $this->revente = false; } /** * * @ORM\PrePersist() */ public function prePersist() { $this->createdAt = new \DateTime(); } /** * * @ORM\PreUpdate() */ public function preUpdate() { $this->updatedAt = new \DateTime(); } /** * Get id * * @return int */ public function getId() { return $this->id; } /** * Set volumeMax * * @param float $volumeMax * * @return OffreLegumes */ public function setVolumeMax($volumeMax) { $this->volumeMax = $volumeMax; return $this; } /** * Get volumeMax * * @return float */ public function getVolumeMax() { return $this->volumeMax; } /** * Set isPromo * * @param boolean $isPromo * * @return OffreLegumes */ public function setIsPromo($isPromo) { $this->isPromo = $isPromo; return $this; } /** * Get isPromo * * @return bool */ public function getIsPromo() { return $this->isPromo; } /** * Set promo * * @param string $promo * * @return OffreLegumes */ public function setPromo($promo) { $this->promo = $promo; return $this; } /** * Get promo * * @return string */ public function getPromo() { return $this->promo; } /** * Set reference * * @param $reference * @return $this */ public function setReference($reference) { $this->reference = $reference; return $this; } /** * Get reference * * @return string */ public function getReference() { return $this->reference; } /** * @return string */ public function getReferenceMore() { return '(#' . sprintf("%03d", $this->id) . ') ' . $this->reference; } /** * Set createdAt * * @param \DateTime $createdAt * * @return OffreLegumes */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt * * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * Set updatedAt * * @param \DateTime $updatedAt * * @return OffreLegumes */ public function setUpdatedAt($updatedAt) { $this->updatedAt = $updatedAt; return $this; } /** * Get updatedAt * * @return \DateTime */ public function getUpdatedAt() { return $this->updatedAt; } /** * Set nom * * @param string $nom * * @return OffreLegumes */ public function setNom($nom) { $this->nom = $nom; return $this; } /** * Get nom * * @return string */ public function getNom() { return $this->nom; } /** * Set description * * @param string $description * * @return OffreLegumes */ public function setDescription($description) { $this->description = $description; return $this; } /** * Get description * * @return string */ public function getDescription() { return $this->description; } /** * Set fruit * * @param boolean $fruit * * @return OffreLegumes */ public function setFruit($fruit) { $this->fruit = $fruit; return $this; } /** * Get fruit * * @return boolean */ public function getFruit() { return $this->fruit; } /** * Set revente * * @param boolean $revente * * @return OffreLegumes */ public function setRevente($revente) { $this->revente = $revente; return $this; } /** * Get revente * * @return boolean */ public function getRevente() { return $this->revente; } /** * Set origine * * @param string $origine * * @return OffreLegumes */ public function setOrigine($origine) { $this->origine = $origine; return $this; } /** * Get origine * * @return string */ public function getOrigine() { return $this->origine; } /** * Set prixUnitaire * * @param float $prixUnitaire * * @return OffreLegumes */ public function setPrixUnitaire($prixUnitaire) { $this->prixUnitaire = $prixUnitaire; return $this; } /** * Get prixUnitaire * * @return float */ public function getPrixUnitaire() { return $this->prixUnitaire; } /** * Set unite * * @param string $unite * * @return OffreLegumes */ public function setUnite($unite) { $this->unite = $unite; return $this; } /** * Get unite * * @return string */ public function getUnite() { return $this->unite; } /** * Set quantiteMin * * @param float $quantiteMin * * @return OffreLegumes */ public function setQuantiteMin($quantiteMin) { $this->quantiteMin = $quantiteMin; return $this; } /** * Get quantiteMin * * @return float */ public function getQuantiteMin() { return $this->quantiteMin; } /** * Set quantiteMax * * @param float $quantiteMax * * @return OffreLegumes */ public function setQuantiteMax($quantiteMax) { $this->quantiteMax = $quantiteMax; return $this; } /** * Get quantiteMax * * @return float */ public function getQuantiteMax() { return $this->quantiteMax; } /** * Set quantiteStep * * @param float $quantiteStep * * @return OffreLegumes */ public function setQuantiteStep($quantiteStep) { $this->quantiteStep = $quantiteStep; return $this; } /** * Get quantiteStep * * @return float */ public function getQuantiteStep() { return $this->quantiteStep; } /** * Set image * * @param string $image * * @return OffreLegumes */ public function setImage($image) { $this->image = $image; return $this; } /** * Get image * * @return string */ public function getImage() { return $this->image; } /** * @param File|null $image */ public function setImageFile(File $image = null) { $this->imageFile = $image; // VERY IMPORTANT: // It is required that at least one field changes if you are using Doctrine, // otherwise the event listeners won't be called and the file is lost if ($image) { // if 'updatedAt' is not defined in your entity, use another property $this->updatedAt = new \DateTime('now'); } } /** * @return File */ public function getImageFile() { return $this->imageFile; } /** * Set offre * * @param \PotageBundle\Entity\Offre $offre * * @return OffreLegumes */ public function setOffre(\PotageBundle\Entity\Offre $offre) { $this->offre = $offre; return $this; } /** * @return int */ public function getOffre() { return $this->offre; } /** * @return CommandeLegumes[] */ public function getCommandeLegumes() { return $this->commandeLegumes; } /** * @param CommandeLegumes[] $commandeLegumes */ public function setCommandeLegumes($commandeLegumes) { $this->commandeLegumes = $commandeLegumes; } }