src/Flexy/ShopBundle/Entity/Payment/TransactionList.php line 14
<?phpnamespace App\Flexy\ShopBundle\Entity\Payment;use ApiPlatform\Metadata\ApiResource;use App\Repository\Flexy\ShopBundle\Entity\Payment\TransactionListRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: TransactionListRepository::class)]#[ApiResource]class TransactionList{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $createdAt = null;#[ORM\Column(length: 255, nullable: true)]private ?string $excelDocument = null;#[ORM\Column(type: Types::TEXT, nullable: true)]private ?string $description = null;#[ORM\OneToMany(mappedBy: 'transactionList', targetEntity: Transaction::class)]private Collection $transactions;#[ORM\Column(length: 255)]private ?string $type = null;#[ORM\Column(length: 255)]private ?string $mode = null;public function __construct(){$this->transactions = new ArrayCollection();}public function getId(): ?int{return $this->id;}public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}public function setCreatedAt(?\DateTimeInterface $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getExcelDocument(): ?string{return $this->excelDocument;}public function setExcelDocument(?string $excelDocument): self{$this->excelDocument = $excelDocument;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): self{$this->description = $description;return $this;}/*** @return Collection<int, Transaction>*/public function getTransactions(): Collection{return $this->transactions;}public function addTransaction(Transaction $transaction): self{if (!$this->transactions->contains($transaction)) {$this->transactions->add($transaction);$transaction->setTransactionList($this);}return $this;}public function removeTransaction(Transaction $transaction): self{if ($this->transactions->removeElement($transaction)) {// set the owning side to null (unless already changed)if ($transaction->getTransactionList() === $this) {$transaction->setTransactionList(null);}}return $this;}public function getType(): ?string{return $this->type;}public function setType(string $type): self{$this->type = $type;return $this;}public function getMode(): ?string{return $this->mode;}public function setMode(string $mode): self{$this->mode = $mode;return $this;}}