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.     /**
  47.      * @ORM\ManyToOne(targetEntity=Task::class)
  48.      * @ORM\JoinColumn(nullable=true, onDelete="SET NULL")
  49.      */
  50.     private ?Task $task null;
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getOffer(): Offer
  56.     {
  57.         return $this->offer;
  58.     }
  59.     public function setOffer(Offer $offer): OfferBody
  60.     {
  61.         $this->offer $offer;
  62.         return $this;
  63.     }
  64.     public function getDescription(): ?string
  65.     {
  66.         return $this->description;
  67.     }
  68.     public function setDescription(string $description): self
  69.     {
  70.         $this->description $description;
  71.         return $this;
  72.     }
  73.     public function getTehnicalDescription(): ?string
  74.     {
  75.         return $this->tehnicalDescription;
  76.     }
  77.     public function setTehnicalDescription(string $tehnicalDescription): self
  78.     {
  79.         $this->tehnicalDescription $tehnicalDescription;
  80.         return $this;
  81.     }
  82.     public function getHour(): ?int
  83.     {
  84.         return $this->hour;
  85.     }
  86.     public function setHour(?int $hour): self
  87.     {
  88.         $this->hour $hour;
  89.         return $this;
  90.     }
  91.     public function getValue(): ?string
  92.     {
  93.         return $this->value;
  94.     }
  95.     public function setValue(?string $value): self
  96.     {
  97.         $this->value $value;
  98.         return $this;
  99.     }
  100.     public function isAccepted(): ?bool
  101.     {
  102.         return $this->accepted;
  103.     }
  104.     public function setAccepted(bool $accepted): self
  105.     {
  106.         $this->accepted $accepted;
  107.         return $this;
  108.     }
  109.     public function getOrderOfferBody()
  110.     {
  111.         return $this->orderOfferBody;
  112.     }
  113.     public function setOrderOfferBody($orderOfferBody)
  114.     {
  115.         $this->orderOfferBody $orderOfferBody;
  116.         return $this;
  117.     }
  118.     public function getTask(): ?Task
  119.     {
  120.         return $this->task;
  121.     }
  122.     public function setTask(?Task $task): self
  123.     {
  124.         $this->task $task;
  125.         return $this;
  126.     }
  127.     public function isFromExistingTask(): bool
  128.     {
  129.         return $this->task !== null;
  130.     }
  131. }