for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TddWizard\Fixtures\Sales;
use Magento\Sales\Api\Data\InvoiceInterface;
class InvoiceFixture
{
/**
* @var InvoiceInterface
*/
private $invoice;
public function __construct(InvoiceInterface $shipment)
$this->invoice = $shipment;
}
public function getInvoice(): InvoiceInterface
return $this->invoice;
public function getId(): int
return (int) $this->invoice->getEntityId();