for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Damax\ChargeableApi\Identity;
final class FixedIdentityFactory implements IdentityFactory
{
private $identity;
public function __construct(string $identity)
$this->identity = $identity;
}
public function create(): Identity
return new UserIdentity($this->identity);