mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 21:09:35 +00:00
Made classes readonly where possible
This commit is contained in:
parent
27a18bdc1e
commit
eda6deff47
4 changed files with 26 additions and 26 deletions
|
|
@ -28,17 +28,17 @@ namespace App\Services\InfoProviderSystem\DTOs;
|
|||
* This could be a voltage, a current, a temperature or similar.
|
||||
* @see \App\Tests\Services\InfoProviderSystem\DTOs\ParameterDTOTest
|
||||
*/
|
||||
class ParameterDTO
|
||||
readonly class ParameterDTO
|
||||
{
|
||||
public function __construct(
|
||||
public readonly string $name,
|
||||
public readonly ?string $value_text = null,
|
||||
public readonly ?float $value_typ = null,
|
||||
public readonly ?float $value_min = null,
|
||||
public readonly ?float $value_max = null,
|
||||
public readonly ?string $unit = null,
|
||||
public readonly ?string $symbol = null,
|
||||
public readonly ?string $group = null,
|
||||
public string $name,
|
||||
public ?string $value_text = null,
|
||||
public ?float $value_typ = null,
|
||||
public ?float $value_min = null,
|
||||
public ?float $value_max = null,
|
||||
public ?string $unit = null,
|
||||
public ?string $symbol = null,
|
||||
public ?string $group = null,
|
||||
) {
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue