src/Connector/PowerOffice/Model/Factory/PowerOfficeFactoryInterface.php line 27

  1. <?php
  2. declare(strict_types=1);
  3. /**
  4.  * Copyright (c) 2022 TECLA Consulting Group oü.
  5.  * All rights reserved.
  6.  *
  7.  * This unpublished material is proprietary to TECLA Consulting Group oü.
  8.  * All rights reserved. The methods and
  9.  * techniques described herein are considered trade secrets
  10.  * and/or confidential. Reproduction or distribution, in whole
  11.  * or in part, is forbidden except by express written permission
  12.  * of TECLA Consulting Group oü.
  13.  *
  14.  * @author    Matúš Sýkorjak <matus@tecla.no>
  15.  * @copyright 2022 TECLA Consulting Group oü
  16.  */
  17. namespace App\Connector\PowerOffice\Model\Factory;
  18. use App\Connector\PowerOffice\Dto\PowerOfficeDto;
  19. use App\Connector\PowerOffice\Model\PowerOfficeInterface;
  20. use App\Contact\Model\ContactInterface;
  21. interface PowerOfficeFactoryInterface
  22. {
  23.     public function create(
  24.         ContactInterface $contact,
  25.         string $apiClientKey null,
  26.         ?int $pullInvoicesFromNumber null,
  27.         ?string $accessToken null,
  28.         ?\DateTimeImmutable $accessTokenExpiresAt null,
  29.         ?string $refreshToken null
  30.     ): PowerOfficeInterface;
  31.     public function createFromDto(PowerOfficeDto $dto): PowerOfficeInterface;
  32. }