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