mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-31 18:34:17 +00:00
0abf617a0d
# Conflicts: # app/Classes/Modules/Announcements/DataTransferObjects/AnnouncementObject.php # app/Classes/Modules/Segments/ControllersLogic/CreateSegmentLogic.php # app/Classes/Modules/Segments/ControllersLogic/DeleteSegmentLogic.php # app/Classes/Modules/Segments/DataTransferObjects/SegmentObject.php # app/Classes/Modules/Segments/Services/CreatesSegment.php # app/Classes/Modules/Segments/Standards/Rules/CanCreateSegment.php # app/Classes/Modules/Segments/Standards/Rules/CanDeleteSegment.php # app/Classes/Modules/Segments/Standards/Validators/SegmentValidation.php # app/Http/Controllers/Announcements/AssignAnnouncementToSegmentController.php # app/Http/Controllers/Announcements/RemoveSegmentFromAnnouncementController.php # app/Http/Controllers/Segments/DeleteSegmentController.php # routes/announcement.php # routes/segment.php # routes/web.php
81 lines
1.5 KiB
PHP
81 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Segments\DataTransferObjects;
|
|
|
|
use App\Classes\General\Interfaces\DataTransferObject;
|
|
<<<<<<< HEAD
|
|
|
|
class SegmentObject implements DataTransferObject
|
|
{
|
|
|
|
/** @var string */
|
|
private $name;
|
|
|
|
/** @var int */
|
|
private $company_module_id;
|
|
|
|
/**
|
|
* ConstantObject constructor.
|
|
* @param string $name
|
|
* @param string $reference
|
|
* @param array $detail
|
|
*/
|
|
public function __construct(string $name, int $company_module_id)
|
|
{
|
|
$this->name = $name;
|
|
$this->company_module_id = $company_module_id;
|
|
=======
|
|
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;
|
|
>>>>>>> 0bbf0f9138ea46fcc96ec0e387fb5dd8a51f5438
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
<<<<<<< HEAD
|
|
* @return string
|
|
*/
|
|
public function getCompanyModuleId(): string
|
|
{
|
|
return $this->company_module_id;
|
|
}
|
|
|
|
=======
|
|
* @return int
|
|
*/
|
|
public function getType(): int
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
>>>>>>> 0bbf0f9138ea46fcc96ec0e387fb5dd8a51f5438
|
|
} |