| 1 | <?php  | 
            ||
| 7 | abstract class OrderProduct  | 
            ||
| 8 | { | 
            ||
| 9 | public const SERIAL_NUMBER_TYPE_SELF_MADE = 'SELF_MADE';  | 
            ||
| 10 | public const SERIAL_NUMBER_TYPE_OPERATOR = 'OPERATOR';  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * @var string  | 
            ||
| 14 | */  | 
            ||
| 15 | private $gtin;  | 
            ||
| 16 | /**  | 
            ||
| 17 | * @var int  | 
            ||
| 18 | */  | 
            ||
| 19 | private $quantity;  | 
            ||
| 20 | /**  | 
            ||
| 21 | * @var string  | 
            ||
| 22 | */  | 
            ||
| 23 | private $serialNumberType;  | 
            ||
| 24 | /**  | 
            ||
| 25 | * @var string[] | null  | 
            ||
| 26 | */  | 
            ||
| 27 | private $serialNumbers;  | 
            ||
| 28 | /**  | 
            ||
| 29 | * @var integer  | 
            ||
| 30 | */  | 
            ||
| 31 | private $templateId;  | 
            ||
| 32 | |||
| 33 | public function __construct(string $gtin, int $quantity, string $serialNumberType, int $templateId)  | 
            ||
| 40 | |||
| 41 | public function getGtin(): string  | 
            ||
| 45 | |||
| 46 | public function getQuantity(): int  | 
            ||
| 50 | |||
| 51 | public function getSerialNumberType(): string  | 
            ||
| 55 | |||
| 56 | public function getTemplateId(): int  | 
            ||
| 60 | |||
| 61 | public function getSerialNumbers(): ?array  | 
            ||
| 65 | |||
| 66 | public function setSerialNumbers(?array $serialNumbers): void  | 
            ||
| 70 | }  |