src/Entity/OfferBody.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OfferBodyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=OfferBodyRepository::class)
  7.  * @ORM\HasLifecycleCallbacks()
  8.  */
  9. class OfferBody
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=Offer::class, inversedBy="offerBodies")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private Offer $offer;
  22.     /**
  23.      * @ORM\Column(type="text")
  24.      */
  25.     private $description;
  26.     /**
  27.      * @ORM\Column(type="text")
  28.      */
  29.     private $tehnicalDescription;
  30.     /**
  31.      * @ORM\Column(type="integer", nullable=true)
  32.      */
  33.     private $hour;
  34.     /**
  35.      * @ORM\Column(type="decimal", precision=11, scale=2, nullable=true)
  36.      */
  37.     private $value;
  38.     /**
  39.      * @ORM\Column(type="boolean",options={"default":false})
  40.      */
  41.     private $accepted false;
  42.     /**
  43.      * @ORM\Column(type="integer")
  44.      */
  45.     private $orderOfferBody;
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getOffer(): Offer
  51.     {
  52.         return $this->offer;
  53.     }
  54.     public function setOffer(Offer $offer): OfferBody
  55.     {
  56.         $this->offer $offer;
  57.         return $this;
  58.     }
  59.     public function getDescription(): ?string
  60.     {
  61.         return $this->description;
  62.     }
  63.     public function setDescription(string $description): self
  64.     {
  65.         $this->description $description;
  66.         return $this;
  67.     }
  68.     public function getTehnicalDescription(): ?string
  69.     {
  70.         return $this->tehnicalDescription;
  71.     }
  72.     public function setTehnicalDescription(string $tehnicalDescription): self
  73.     {
  74.         $this->tehnicalDescription $tehnicalDescription;
  75.         return $this;
  76.     }
  77.     public function getHour(): ?int
  78.     {
  79.         return $this->hour;
  80.     }
  81.     public function setHour(?int $hour): self
  82.     {
  83.         $this->hour $hour;
  84.         return $this;
  85.     }
  86.     public function getValue(): ?string
  87.     {
  88.         return $this->value;
  89.     }
  90.     public function setValue(?string $value): self
  91.     {
  92.         $this->value $value;
  93.         return $this;
  94.     }
  95.     public function isAccepted(): ?bool
  96.     {
  97.         return $this->accepted;
  98.     }
  99.     public function setAccepted(bool $accepted): self
  100.     {
  101.         $this->accepted $accepted;
  102.         return $this;
  103.     }
  104.     public function getOrderOfferBody()
  105.     {
  106.         return $this->orderOfferBody;
  107.     }
  108.     public function setOrderOfferBody($orderOfferBody)
  109.     {
  110.         $this->orderOfferBody $orderOfferBody;
  111.         return $this;
  112.     }
  113. }