-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDetailsTransfer.php
More file actions
44 lines (35 loc) · 1.32 KB
/
DetailsTransfer.php
File metadata and controls
44 lines (35 loc) · 1.32 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 DetailsTransfer extends AbstractTransfer
{
protected const int META_DATA_SIZE = 2;
protected const array META_DATA = [
self::DESCRIPTION_INDEX => self::DESCRIPTION,
self::IS_REGIONAL_INDEX => self::IS_REGIONAL,
];
// description
public const string DESCRIPTION = 'description';
protected const int DESCRIPTION_INDEX = 0;
public ?string $description {
get => $this->getData(self::DESCRIPTION_INDEX);
set => $this->setData(self::DESCRIPTION_INDEX, $value);
}
// isRegional
public const string IS_REGIONAL = 'isRegional';
protected const int IS_REGIONAL_INDEX = 1;
public ?bool $isRegional {
get => $this->getData(self::IS_REGIONAL_INDEX);
set => $this->setData(self::IS_REGIONAL_INDEX, $value);
}
}