src/Invoice/Model/Factory/InvoicePaymentNotificationFactory.php line 29
<?phpdeclare(strict_types=1);/*** Copyright (c) 2022 TECLA Consulting Group oü.* All rights reserved.** This unpublished material is proprietary to TECLA Consulting Group oü.* All rights reserved. The methods and* techniques described herein are considered trade secrets* and/or confidential. Reproduction or distribution, in whole* or in part, is forbidden except by express written permission* of TECLA Consulting Group oü.** @author Matúš Sýkorjak <matus@tecla.no>* @copyright 2022 TECLA Consulting Group oü*/namespace App\Invoice\Model\Factory;use App\Contact\Model\ContactInterface;use App\Invoice\Dto\InvoicePaymentNotificationDto;use App\Invoice\Model\Identity\InvoicePaymentNotificationId;use App\Invoice\Model\InvoicePaymentNotification;use App\Invoice\Model\InvoicePaymentNotificationInterface;final class InvoicePaymentNotificationFactory implements InvoicePaymentNotificationFactoryInterface{public function create(ContactInterface $subscriber,ContactInterface $supplier = null,ContactInterface $customer = null): InvoicePaymentNotificationInterface {return new InvoicePaymentNotification(InvoicePaymentNotificationId::create(),$subscriber,$supplier,$customer);}public function createFromDto(InvoicePaymentNotificationDto $dto): InvoicePaymentNotificationInterface{return $this->create($dto->getSubscriber(),$dto->getSupplier(),$dto->getCustomer());}}