<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;/** * StudentPackages */#[ORM\Table(name: 'pck_packages')]#[ORM\Entity(repositoryClass: 'App\Repository\PckPackagesRepository')]class PckPackages{ /** * @var int */ #[ORM\Column(name: 'id', type: 'integer', nullable: false)] #[ORM\Id] #[ORM\GeneratedValue(strategy: 'IDENTITY')] private $id; #[ORM\Column(type: 'boolean')] private $active; #[ORM\Column(type: 'integer')] private $creditBalance; //private $pckTransactionsPackages; #[ORM\ManyToOne(targetEntity: Students::class, inversedBy: 'pckPackages')] #[ORM\JoinColumn(nullable: false)] private $Student; #[ORM\ManyToOne(targetEntity: PckPackageTypes::class, inversedBy: 'pckPackages')] #[ORM\JoinColumn(nullable: false)] private $PackageTypes; #[ORM\Column(length: 45, nullable: true)] private ?string $fulfilled_reason = null; #[ORM\Column(type: Types::DATE_MUTABLE, nullable: true)] private ?\DateTimeInterface $expiration_date = null; #[ORM\Column(nullable: true)] private ?bool $fulfilled = null; public function __construct() { //$this->pckTransactionsPackages = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function getActive(): ?bool { return $this->active; } public function setActive(bool $active): self { $this->active = $active; return $this; } public function getCreditBalance(): ?int { return $this->creditBalance; } public function setCreditBalance(int $creditBalance): self { $this->creditBalance = $creditBalance; return $this; } /** * @return Collection|PckTransactions[] */// public function getPckTransactionsPackages(): Collection// {// return $this->pckTransactionsPackages;// } public function getStudent(): ?Students { return $this->Student; } public function setStudent(?Students $Student): self { $this->Student = $Student; return $this; } public function getPackageTypes(): ?PckPackageTypes { return $this->PackageTypes; } public function setPackageTypes(?PckPackageTypes $PackageTypes): self { $this->PackageTypes = $PackageTypes; return $this; }// public function addPckTransactionsPackage(PckTransactions $pckTransactionsPackage): self// {// if (!$this->pckTransactionsPackages->contains($pckTransactionsPackage)) {// $this->pckTransactionsPackages[] = $pckTransactionsPackage;// $pckTransactionsPackage->addPckTransactionsPackage($this);// }//// return $this;// }//// public function removePckTransactionsPackage(PckTransactions $pckTransactionsPackage): self// {// if ($this->pckTransactionsPackages->removeElement($pckTransactionsPackage)) {// $pckTransactionsPackage->removePckTransactionsPackage($this);// }//// return $this;// }public function getFulfilledReason(): ?string{ return $this->fulfilled_reason;}public function setFulfilledReason(?string $fulfilled_reason): static{ $this->fulfilled_reason = $fulfilled_reason; return $this;}public function getExpirationDate(): ?\DateTimeInterface{ return $this->expiration_date;}public function setExpirationDate(?\DateTimeInterface $expiration_date): static{ $this->expiration_date = $expiration_date; return $this;}public function isFulfilled(): ?bool{ return $this->fulfilled;}public function setFulfilled(?bool $fulfilled): static{ $this->fulfilled = $fulfilled; return $this;}}