src/Flexy/ShopBundle/Entity/Payment/Transaction.php line 14
<?phpnamespace App\Flexy\ShopBundle\Entity\Payment;use ApiPlatform\Metadata\ApiResource;use App\Flexy\ShopBundle\Entity\Shipping\CashBox;use App\Repository\Flexy\ShopBundle\Entity\Payment\TransactionRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Entity(repositoryClass: TransactionRepository::class)]#[ApiResource]class Transaction{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column]private ?float $amount = 0;#[ORM\Column(length: 255)]private ?string $purpose = null;#[ORM\ManyToOne(inversedBy: 'transactions')]private ?CashBox $cashBox = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $validatedAt = null;#[ORM\Column(nullable: true)]private ?float $claimedAmount = null;#[ORM\ManyToOne(inversedBy: 'transactions')]private ?TransactionList $transactionList = null;#[ORM\Column(length: 255, nullable: true)]private ?string $reference = null;#[ORM\Column(length: 255, nullable: true)]#[Gedmo\Blameable(on: 'create')]private ?string $createdBy = null;#[ORM\Column(length: 255, nullable: true)]#[Gedmo\Blameable(on: 'update')]private ?string $updatedBy = null;#[ORM\Column(length: 255, nullable: true)]private ?string $type = null;#[ORM\Column(length: 255, nullable: true)]private ?string $fullReference = null;public function getId(): ?int{return $this->id;}public function getAmount(): ?float{return $this->amount;}public function setAmount(float $amount): self{$this->amount = $amount;return $this;}public function getPurpose(): ?string{return $this->purpose;}public function setPurpose(string $purpose): self{$this->purpose = $purpose;return $this;}public function getCashBox(): ?CashBox{return $this->cashBox;}public function setCashBox(?CashBox $cashBox): self{$this->cashBox = $cashBox;return $this;}public function getValidatedAt(): ?\DateTimeInterface{return $this->validatedAt;}public function setValidatedAt(?\DateTimeInterface $validatedAt): self{$this->validatedAt = $validatedAt;return $this;}public function getClaimedAmount(): ?float{return $this->claimedAmount;}public function setClaimedAmount(?float $claimedAmount): self{$this->claimedAmount = $claimedAmount;return $this;}public function getTransactionList(): ?TransactionList{return $this->transactionList;}public function setTransactionList(?TransactionList $transactionList): self{$this->transactionList = $transactionList;return $this;}public function getReference(): ?string{return $this->reference;}public function setReference(string $reference): self{$this->reference = $reference;return $this;}public function getCreatedBy(): ?string{return $this->createdBy;}public function setCreatedBy(?string $createdBy): self{$this->createdBy = $createdBy;return $this;}public function getUpdatedBy(): ?string{return $this->updatedBy;}public function setUpdatedBy(?string $updatedBy): self{$this->updatedBy = $updatedBy;return $this;}public function getType(): ?string{return $this->type;}public function setType(?string $type): self{$this->type = $type;return $this;}public function getFullReference(): ?string{return $this->fullReference;}public function setFullReference(?string $fullReference): self{$this->fullReference = $fullReference;return $this;}}