for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AcquiroPay\Paymarket\Resources;
class Transaction extends AbstractResource
{
/** @var int */
public $id;
public $merchantId;
public $serviceId;
/** @var string */
public $externalId;
public $uuid;
/** @var int|float */
public $amount;
/** @var array */
public $parameters;
/** @var Invoice|null */
public $invoice;
/** @var Transfer|null */
public $transfer;
public $status;
public $statusLabel;
public $createdAt;
public $updatedAt;
public function __construct(array $attributes)
parent::__construct($attributes);
$this->invoice = $attributes['invoice'] ? new Invoice($attributes['invoice']) : null;
$this->transfer = $attributes['transfer'] ? new Transfer($attributes['transfer']) : null;
}
public function hasInvoice(): bool
return (bool) $this->invoice;
public function hasTransfer(): bool
return (bool) $this->transfer;