Implement GetProductIncoForEditQuery, its input and output classes to handle product INCO data retrieval. Update ProductIncosController to utilize the new query for editing product INCOs. Add tests for GetProductIncoForEditQuery to ensure correct behavior.
17 lines
306 B
PHP
17 lines
306 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Cqs\Queries\ProductIncos;
|
|
|
|
use App\Dto\ProductDto;
|
|
use App\Dto\ProductIncoDto;
|
|
|
|
final readonly class GetProductIncoForEditQueryOutput
|
|
{
|
|
public function __construct(
|
|
public ProductDto $product,
|
|
public ?ProductIncoDto $inco,
|
|
) {
|
|
}
|
|
}
|