mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-09-01 02:43:59 +00:00
segment constant detail
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\SegmentConstants\DataTransferObjects;
|
||||
|
||||
use App\Classes\Interfaces\DataTransferObject;
|
||||
|
||||
class SegmentConstantObject implements DataTransferObject
|
||||
{
|
||||
/** @var int|null */
|
||||
private $segment_id;
|
||||
|
||||
/** @var string|null */
|
||||
private $name;
|
||||
|
||||
/** @var string|null */
|
||||
private $reference;
|
||||
|
||||
/** @var int */
|
||||
private $type;
|
||||
|
||||
/** @var array */
|
||||
private $detail;
|
||||
|
||||
/**
|
||||
* SegmentConstantObject constructor.
|
||||
* @param string|null $segment_id
|
||||
* @param string|null $name
|
||||
* @param string|null $reference
|
||||
* @param string|null $type
|
||||
* @param array|null $detail
|
||||
*/
|
||||
public function __construct(
|
||||
?int $segment_id,
|
||||
?string $name,
|
||||
?string $reference,
|
||||
?string $type,
|
||||
?array $detail
|
||||
)
|
||||
{
|
||||
$this->segment_id = $segment_id;
|
||||
$this->name = $name;
|
||||
$this->reference = $reference;
|
||||
$this->type = $type;
|
||||
$this->detail = $detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getSegmentId(): ?int
|
||||
{
|
||||
return $this->segment_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getReference(): ?string
|
||||
{
|
||||
return $this->reference;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getType(): ?string
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getDetail(): ?array
|
||||
{
|
||||
return $this->detail;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user