src/Entity/ChargeAllocation.php line 12
<?phpnamespace App\Entity;use App\Repository\ChargeAllocationRepository;use App\Traits\TimeStampTrait;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ChargeAllocationRepository::class)]#[ORM\HasLifecycleCallbacks]class ChargeAllocation{use TimeStampTrait;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'chargeAllocations', cascade: ['persist'])]private ?Charge $charge = null;#[ORM\ManyToOne(inversedBy: 'chargeAllocations')]private ?Location $location = null;#[ORM\Column(type: Types::DECIMAL, precision: 10, scale: 2)]private ?string $allocatedAmount = null;#[ORM\ManyToOne(inversedBy: 'chargeAllocations')]private ?Locataire $locataire = null;#[ORM\ManyToOne(inversedBy: 'chargeAllocations')]private ?Entreprise $marchand = null;#[ORM\Column(length: 255)]private ?string $code = null;#[ORM\Column]private ?bool $paid = null;#[ORM\Column(nullable: true)]private ?\DateTime $paidAt = null;#[ORM\ManyToOne(inversedBy: 'chargeAllocations')]private ?Payment $payment = null;public function getId(): ?int{return $this->id;}public function getCharge(): ?Charge{return $this->charge;}public function setCharge(?Charge $charge): static{$this->charge = $charge;return $this;}public function getLocation(): ?Location{return $this->location;}public function setLocation(?Location $location): static{$this->location = $location;return $this;}public function getAllocatedAmount(): ?string{return $this->allocatedAmount;}public function setAllocatedAmount(string $allocatedAmount): static{$this->allocatedAmount = $allocatedAmount;return $this;}public function getLocataire(): ?Locataire{return $this->locataire;}public function setLocataire(?Locataire $locataire): static{$this->locataire = $locataire;return $this;}public function getMarchand(): ?Entreprise{return $this->marchand;}public function setMarchand(?Entreprise $marchand): static{$this->marchand = $marchand;return $this;}public function getCode(): ?string{return $this->code;}public function setCode(string $code): static{$this->code = $code;return $this;}public function isPaid(): ?bool{return $this->paid;}public function setPaid(bool $paid): static{$this->paid = $paid;return $this;}public function getPaidAt(): ?\DateTime{return $this->paidAt;}public function setPaidAt(?\DateTime $paidAt): static{$this->paidAt = $paidAt;return $this;}public function getPayment(): ?Payment{return $this->payment;}public function setPayment(?Payment $payment): static{$this->payment = $payment;return $this;}}