Added tests for DTOConverter

This commit is contained in:
Jan Böhmer 2023-07-15 18:18:35 +02:00
parent de82249d8d
commit 8ea92ef330
11 changed files with 429 additions and 11 deletions

View file

@ -24,8 +24,10 @@ declare(strict_types=1);
namespace App\Services\InfoProviderSystem\DTOs;
use App\Entity\Parts\ManufacturingStatus;
use Hoa\Zformat\Parameter;
/**
* This DTO represents a part with all its details.
*/
class PartDetailDTO extends SearchResultDTO
{
public function __construct(
@ -43,6 +45,8 @@ class PartDetailDTO extends SearchResultDTO
public readonly ?string $notes = null,
/** @var FileDTO[]|null */
public readonly ?array $datasheets = null,
/** @var FileDTO[]|null */
public readonly ?array $images = null,
/** @var ParameterDTO[]|null */
public readonly ?array $parameters = null,
/** @var PurchaseInfoDTO[]|null */