<?phpnamespace App\Entity;use App\Repository\ProductPercentageSplitRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ProductPercentageSplitRepository::class)]class ProductPercentageSplit{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $name; #[ORM\Column(type: 'float', nullable: true)] private $percentage; #[ORM\Column(type: 'string', length: 255, nullable: true)] private $glCode; #[ORM\ManyToOne(targetEntity: Product::class, inversedBy: 'percentageSplits')] private $product; #[ORM\Column(length: 255, nullable: true)] private ?string $accountId = null; #[ORM\Column(nullable: true)] private ?bool $isRoundDown = null; #[ORM\Column(length: 255, nullable: true)] private ?string $refundCode = null; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(?string $name): self { $this->name = $name; return $this; } public function getPercentage(): ?float { return $this->percentage; } public function setPercentage(?float $percentage): self { $this->percentage = $percentage; return $this; } public function getGlCode(): ?string { return $this->glCode; } public function setGlCode(?string $glCode): self { $this->glCode = $glCode; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; } public function toString() { $string = '-'; if ($this->name) { $string = $this->name . ' - ' . $this->percentage . '%'; } return $string; } public function __toString() { return $this->toString(); } public function getAccountId(): ?string { return $this->accountId; } public function setAccountId(?string $accountId): self { $this->accountId = $accountId; return $this; } public function isIsRoundDown(): ?bool { return $this->isRoundDown; } public function setIsRoundDown(?bool $isRoundDown): self { $this->isRoundDown = $isRoundDown; return $this; } public function getRefundCode(): ?string { return $this->refundCode; } public function setRefundCode(?string $refundCode): static { $this->refundCode = $refundCode; return $this; }}