for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Inspirum\Balikobot\Model\Account;
use Inspirum\Balikobot\Model\Carrier\CarrierFactory;
final class DefaultAccountFactory implements AccountFactory
{
public function __construct(private CarrierFactory $carrierFactory)
}
/** @inheritDoc */
public function create(array $response): Account
return new DefaultAccount(
$response['account']['name'],
$response['account']['contact_person'],
$response['account']['email'],
$response['account']['phone'],
$response['account']['url'],
$response['account']['street'],
$response['account']['city'],
$response['account']['zip'],
$response['account']['country'],
$response['live_account'],
$this->carrierFactory->createCollection($response),
);