mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
86 lines
1.6 KiB
PHP
86 lines
1.6 KiB
PHP
<?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;
|
|
}
|
|
} |