-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPaletteTransfer.php
More file actions
44 lines (35 loc) · 1.2 KB
/
PaletteTransfer.php
File metadata and controls
44 lines (35 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types=1);
namespace Picamator\Examples\TransferObject\Generated\DefinitionGenerator;
use Picamator\TransferObject\Transfer\AbstractTransfer;
/**
* Specification:
* - Class is automatically generated based on a definition file.
* - To modify it, please update the corresponding definition file and run the generator again.
*
* Note: Do not manually edit this file, as changes will be overwritten.
*
* @see /examples/config/definition-generator/definition/product.transfer.yml Definition file path.
*/
final class PaletteTransfer extends AbstractTransfer
{
protected const int META_DATA_SIZE = 2;
protected const array META_DATA = [
self::ITEMS_INDEX => self::ITEMS,
self::TYPE_INDEX => self::TYPE,
];
// items
public const string ITEMS = 'items';
protected const int ITEMS_INDEX = 0;
public ?int $items {
get => $this->getData(self::ITEMS_INDEX);
set => $this->setData(self::ITEMS_INDEX, $value);
}
// type
public const string TYPE = 'type';
protected const int TYPE_INDEX = 1;
public ?string $type {
get => $this->getData(self::TYPE_INDEX);
set => $this->setData(self::TYPE_INDEX, $value);
}
}