<?php
namespace App\Entity\OnlineShop;
use App\Entity\AbstractBase;
use App\Repository\OnlineShop\ScalePriceRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Money\Money;
/**
* @ORM\Table(name="vulco_scale_price")
* @ORM\Entity(repositoryClass=ScalePriceRepository::class)
* @Gedmo\SoftDeleteable(fieldName="removedAt", timeAware=false)
*/
class ScalePrice extends AbstractBase
{
/**
* @ORM\Column(type="money")
*/
private Money $ratePrice;
/**
* @ORM\Column(type="money")
*/
private Money $costPrice;
/**
* @ORM\Column(type="integer")
*/
private int $quantity;
public function getRatePrice(): Money
{
return $this->ratePrice;
}
public function setRatePrice(Money $ratePrice): self
{
$this->ratePrice = $ratePrice;
return $this;
}
public function getCostPrice(): Money
{
return $this->costPrice;
}
public function setCostPrice(Money $costPrice): self
{
$this->costPrice = $costPrice;
return $this;
}
public function getQuantity(): int
{
return $this->quantity;
}
public function setQuantity(int $quantity): self
{
$this->quantity = $quantity;
return $this;
}
}