new: assign segment to company created. #1

This commit is contained in:
weichien00
2021-06-26 00:27:55 +08:00
parent b6f56ffebd
commit d3fa2170f7
9 changed files with 378 additions and 0 deletions
@@ -0,0 +1,57 @@
<?php
namespace App\Classes\Modules\Segments\DataTransferObjects;
use App\Classes\General\Interfaces\DataTransferObject;
class ConstantObject implements DataTransferObject
{
/** @var string */
private $name;
/** @var string */
private $reference;
/** @var array */
private $detail;
/**
* ConstantObject constructor.
* @param string $name
* @param string $reference
* @param array $detail
*/
public function __construct(string $name, string $reference, array $detail)
{
$this->name = $name;
$this->reference = $reference;
$this->detail = $detail;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @return string
*/
public function getReference(): string
{
return $this->reference;
}
/**
* @return array
*/
public function getDetail(): array
{
return $this->detail;
}
}