Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** @license For full copyright and license information, please see the LICENSE.md file. */ |
| 6 | |
| 7 | namespace App\Modules\Quotes\Application\Service; |
| 8 | |
| 9 | defined('AMMONLY_APP') || exit('Direct script access is forbidden.'); |
| 10 | |
| 11 | use App\Core\Engine\Domain\Model\PermissionContext; |
| 12 | use RuntimeException; |
| 13 | |
| 14 | interface QuoteConversionApplicationServiceInterface |
| 15 | { |
| 16 | /** |
| 17 | * Converts a Quote into a new Sales Order. |
| 18 | * |
| 19 | * @param int $quoteId |
| 20 | * @param PermissionContext $context |
| 21 | * @return int The ID of the newly created Order. |
| 22 | * @throws RuntimeException If conversion fails. |
| 23 | */ |
| 24 | public function convertQuoteToOrder(int $quoteId, PermissionContext $context): int; |
| 25 | } |