26 lines
495 B
PHP
26 lines
495 B
PHP
<?php
|
|
|
|
namespace App\DTOs\Part;
|
|
|
|
use App\DTOs\CommonDTO;
|
|
|
|
class SOFTWAREDTO extends CommonDTO
|
|
{
|
|
public ?int $uid = null;
|
|
public ?string $title = null;
|
|
public ?int $price = null;
|
|
public ?string $used = null;
|
|
public ?int $stock = null;
|
|
public ?string $status = null;
|
|
|
|
public function __construct(array $datas = [])
|
|
{
|
|
parent::__construct();
|
|
foreach ($datas as $key => $value) {
|
|
if (property_exists($this, $key)) {
|
|
$this->{$key} = $value;
|
|
}
|
|
}
|
|
}
|
|
}
|