Files
omair saleh 05401f6bbc large commit
2021-03-11 13:06:40 +08:00

48 lines
827 B
PHP

<?php
namespace App\Classes\Modules\Segments\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
use App\Classes\ValueObjects\Constants\SegmentConstants;
class SegmentObject implements DataTransferObject
{
/** @var string */
private $name;
/** @var int|null */
private $type;
/**
* SegmentObject constructor.
* @param string $name
* @param int|null $type
*/
public function __construct(string $name, ?int $type = SegmentConstants::STANDARD_SEGMENT)
{
$this->name = $name;
$this->type = $type;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @return int
*/
public function getType(): int
{
return $this->type;
}
}