for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* PHP Billing Library
*
* @link https://github.com/hiqdev/php-billing
* @package php-billing
* @license BSD-3-Clause
* @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\php\billing\sale;
* Default sale factory.
* @author Andrii Vasyliev <[email protected]>
class SaleFactory implements SaleFactoryInterface
{
* Creates sale object.
* @return Sale
public function create(SaleCreationDto $dto)
return new Sale($dto->id, $dto->target, $dto->customer, $dto->plan, $dto->time);
}