<?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;
    }






}