mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-19 18:34:38 +02:00
Added tests for DTOConverter
This commit is contained in:
parent
de82249d8d
commit
8ea92ef330
11 changed files with 429 additions and 11 deletions
|
@ -23,12 +23,20 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Services\InfoProviderSystem\DTOs;
|
||||
|
||||
/**
|
||||
* This DTO represents a file that can be downloaded from a URL.
|
||||
* This could be a datasheet, a 3D model, a picture or similar.
|
||||
*/
|
||||
class FileDTO
|
||||
{
|
||||
/**
|
||||
* @param string $url The URL where to get this file
|
||||
* @param string|null $name Optionally the name of this file
|
||||
*/
|
||||
public function __construct(
|
||||
/** The URL where to get this file */
|
||||
public readonly string $url,
|
||||
/** Optionally the name of this file */
|
||||
public readonly ?string $name = null,
|
||||
) {}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue