src/Entity/OnlineShop/ScalePrice.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\OnlineShop;
  3. use App\Entity\AbstractBase;
  4. use App\Repository\OnlineShop\ScalePriceRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. use Money\Money;
  8. /**
  9.  * @ORM\Table(name="vulco_scale_price")
  10.  * @ORM\Entity(repositoryClass=ScalePriceRepository::class)
  11.  * @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
  12.  */
  13. class ScalePrice extends AbstractBase
  14. {
  15.     /**
  16.      * @ORM\Column(type="money")
  17.      */
  18.     private Money $ratePrice;
  19.     /**
  20.      * @ORM\Column(type="money")
  21.      */
  22.     private Money $costPrice;
  23.     /**
  24.      * @ORM\Column(type="integer")
  25.      */
  26.     private int $quantity;
  27.     public function getRatePrice(): Money
  28.     {
  29.         return $this->ratePrice;
  30.     }
  31.     public function setRatePrice(Money $ratePrice): self
  32.     {
  33.         $this->ratePrice $ratePrice;
  34.         return $this;
  35.     }
  36.     public function getCostPrice(): Money
  37.     {
  38.         return $this->costPrice;
  39.     }
  40.     public function setCostPrice(Money $costPrice): self
  41.     {
  42.         $this->costPrice $costPrice;
  43.         return $this;
  44.     }
  45.     public function getQuantity(): int
  46.     {
  47.         return $this->quantity;
  48.     }
  49.     public function setQuantity(int $quantity): self
  50.     {
  51.         $this->quantity $quantity;
  52.         return $this;
  53.     }
  54. }