<?phpdeclare(strict_types=1);namespace Croisiland\CommonBundle\Entity\Price;use Crea\ToolsBundle\Entity\LifecycleUserIdentifierTrait;use Croisiland\CommonBundle\Entity\Traits\CurrencyTrait;use Croisiland\CommonBundle\Repository\Price\ServiceChargeRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=ServiceChargeRepository::class) */class ServiceCharge{ use LifecycleUserIdentifierTrait; use CurrencyTrait; /** * @ORM\Id * * @ORM\GeneratedValue * * @ORM\Column(type="integer") */ private ?int $id = null; /** * @ORM\ManyToOne(targetEntity=ServiceChargeType::class) * * @ORM\JoinColumn(nullable=true) */ private ?ServiceChargeType $type = null; /** * @ORM\Column(type="float") */ private ?float $amount = null; /** * @ORM\Column(type="float") */ private ?float $total = null; /** * @ORM\ManyToOne(targetEntity=Price::class, inversedBy="serviceCharges") * * @ORM\JoinColumn(nullable=false) */ private ?Price $price = null; /** * @ORM\Column(type="integer") */ private int $position = 0; public function getId(): ?int { return $this->id; } public function getType(): ?ServiceChargeType { return $this->type; } public function setType(ServiceChargeType $type): self { $this->type = $type; return $this; } public function getAmount(): ?float { return $this->amount; } public function setAmount(float $amount): self { $this->amount = $amount; return $this; } public function getTotal(): ?float { return $this->total; } public function setTotal(float $total): self { $this->total = $total; return $this; } public function getPrice(): ?Price { return $this->price; } public function setPrice(?Price $price): self { $this->price = $price; return $this; } public function getPosition(): int { return $this->position; } public function setPosition(int $position): self { $this->position = $position; return $this; }}