src/Entity/AdditionalOfferFee.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AdditionalOfferFeeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. /**
  7.  * @ORM\Entity(repositoryClass=AdditionalOfferFeeRepository::class)
  8.  */
  9. class AdditionalOfferFee
  10. {
  11.     /**
  12.      * Hook timestampable behavior
  13.      * updates createdAt, updatedAt fields
  14.      */
  15.     use TimestampableEntity;
  16.     
  17.     /**
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue
  20.      * @ORM\Column(type="integer")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity=FenceOffer::class, inversedBy="additionalOfferFees")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $fenceOffer;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=AdditionalFeeDictionary::class)
  30.      * @ORM\JoinColumn(nullable=false)
  31.      */
  32.     private $additionalFee;
  33.     /**
  34.      * @ORM\Column(type="float")
  35.      */
  36.     private $amount;
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getFenceOffer(): ?FenceOffer
  42.     {
  43.         return $this->fenceOffer;
  44.     }
  45.     public function setFenceOffer(?FenceOffer $fenceOffer): self
  46.     {
  47.         $this->fenceOffer $fenceOffer;
  48.         return $this;
  49.     }
  50.     public function getAdditionalFee(): ?AdditionalFeeDictionary
  51.     {
  52.         return $this->additionalFee;
  53.     }
  54.     public function setAdditionalFee(?AdditionalFeeDictionary $additionalFee): self
  55.     {
  56.         $this->additionalFee $additionalFee;
  57.         return $this;
  58.     }
  59.     public function getAmount(): ?float
  60.     {
  61.         return $this->amount;
  62.     }
  63.     public function setAmount(float $amount): self
  64.     {
  65.         $this->amount $amount;
  66.         return $this;
  67.     }
  68. }