. */ declare(strict_types=1); namespace App\Services\InfoProviderSystem\DTOs; use App\Entity\Parts\ManufacturingStatus; class SearchResultDTO { public function __construct( /** @var string The provider key (e.g. "digikey") */ public readonly string $provider_key, /** @var string The ID which identifies the part in the provider system */ public readonly string $provider_id, /** @var string The name of the part */ public readonly string $name, /** @var string A short description of the part */ public readonly string $description, /** @var string|null The manufacturer of the part */ public readonly ?string $manufacturer = null, /** @var string|null The manufacturer part number */ public readonly ?string $mpn = null, /** @var string|null An URL to a preview image */ public readonly ?string $preview_image_url = null, /** @var ManufacturingStatus|null The manufacturing status of the part */ public readonly ?ManufacturingStatus $manufacturing_status = null, /** @var string|null A link to the part on the providers page */ public readonly ?string $provider_url = null, ) { } }