bavix/laravel-wallet

View on GitHub
src/Internal/Assembler/AvailabilityDtoAssembler.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace Bavix\Wallet\Internal\Assembler;

use Bavix\Wallet\Interfaces\Customer;
use Bavix\Wallet\Internal\Dto\AvailabilityDto;
use Bavix\Wallet\Internal\Dto\AvailabilityDtoInterface;
use Bavix\Wallet\Internal\Dto\BasketDtoInterface;

final class AvailabilityDtoAssembler implements AvailabilityDtoAssemblerInterface
{
    public function create(Customer $customer, BasketDtoInterface $basketDto, bool $force): AvailabilityDtoInterface
    {
        return new AvailabilityDto($customer, $basketDto, $force);
    }
}