@@ -8,6 +8,6 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public ?string $id = null; |
| 10 | 10 | /** @var array<string, string|int|float|bool|array<string, string|int|float|bool>>|string|null */ |
| 11 | - public array|string|null $ids = null; |
|
| 11 | + public array | string | null $ids = null; |
|
| 12 | 12 | public ?float $price = null; |
| 13 | 13 | } |
@@ -10,5 +10,5 @@ |
||
| 10 | 10 | #[Attributes\RefElement] |
| 11 | 11 | public ?string $recyclingContribType = null; |
| 12 | 12 | #[Attributes\Options\FloatOption] |
| 13 | - public float|string|null $coefficientOfRecyclingContrib = null; |
|
| 13 | + public float | string | null $coefficientOfRecyclingContrib = null; |
|
| 14 | 14 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | #[Attributes\Options\StringOption(10)] |
| 17 | 17 | public ?string $unit = null; |
| 18 | 18 | #[Attributes\Options\FloatOption] |
| 19 | - public float|string|null $coefficient = null; |
|
| 19 | + public float | string | null $coefficient = null; |
|
| 20 | 20 | #[Attributes\Options\StringOption(2)] |
| 21 | 21 | public ?string $country = null; |
| 22 | 22 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | // process stockPriceItem |
| 21 | 21 | if (!empty($data->stockPriceItem) && is_array($data->stockPriceItem)) { |
| 22 | - $data->stockPriceItem = \array_map(function (PriceDto $stockPriceItem) { |
|
| 22 | + $data->stockPriceItem = \array_map(function(PriceDto $stockPriceItem) { |
|
| 23 | 23 | $price = new Price($this->dependenciesFactory); |
| 24 | 24 | $price->setDirectionalVariable($this->useOneDirectionalVariables) |
| 25 | 25 | ->setResolveOptions($this->resolveOptions) |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | |
| 8 | 8 | class StockDto extends Dtos\AbstractDto |
| 9 | 9 | { |
| 10 | - public Type\ActionType|Type\Dtos\ActionTypeDto|null $actionType = null; |
|
| 11 | - public Header|HeaderDto|null $header = null; |
|
| 10 | + public Type\ActionType | Type\Dtos\ActionTypeDto | null $actionType = null; |
|
| 11 | + public Header | HeaderDto | null $header = null; |
|
| 12 | 12 | /** @var array<StockItem|StockItemDto> */ |
| 13 | 13 | public array $stockDetail = []; |
| 14 | 14 | /** @var array<Price|PriceDto> */ |
@@ -13,5 +13,5 @@ |
||
| 13 | 13 | #[Attributes\Options\IntegerOption] |
| 14 | 14 | public ?int $order = null; |
| 15 | 15 | #[Attributes\JustAttribute, Attributes\Options\BooleanOption, Attributes\Options\DefaultOption(false)] |
| 16 | - public bool|string|null $default = null; |
|
| 16 | + public bool | string | null $default = null; |
|
| 17 | 17 | } |
@@ -12,5 +12,5 @@ |
||
| 12 | 12 | #[Attributes\Options\RequiredOption] |
| 13 | 13 | public ?string $name = null; |
| 14 | 14 | #[Attributes\Options\IntegerOption] |
| 15 | - public int|string|null $constant = null; |
|
| 15 | + public int | string | null $constant = null; |
|
| 16 | 16 | } |
@@ -12,13 +12,13 @@ |
||
| 12 | 12 | #[Attributes\Options\RequiredOption] |
| 13 | 13 | public ?string $name = null; |
| 14 | 14 | #[Attributes\Options\BooleanOption] |
| 15 | - public bool|string|null $constants = null; |
|
| 15 | + public bool | string | null $constants = null; |
|
| 16 | 16 | #[Attributes\Options\DateTimeOption] |
| 17 | - public \DateTimeInterface|string|null $dateTimeStamp = null; |
|
| 17 | + public \DateTimeInterface | string | null $dateTimeStamp = null; |
|
| 18 | 18 | #[Attributes\Options\DateOption] |
| 19 | - public \DateTimeInterface|string|null $dateValidFrom = null; |
|
| 19 | + public \DateTimeInterface | string | null $dateValidFrom = null; |
|
| 20 | 20 | #[Attributes\Options\BooleanOption] |
| 21 | - public bool|string|null $submenu = null; |
|
| 21 | + public bool | string | null $submenu = null; |
|
| 22 | 22 | /** @var array<ItemUserCode> */ |
| 23 | 23 | #[Attributes\JustAttribute] |
| 24 | 24 | public array $itemUserCodes = []; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * |
| 27 | 27 | * @return $this |
| 28 | 28 | */ |
| 29 | - public function addSubcategory(self|Category\CategoryDto $category): self |
|
| 29 | + public function addSubcategory(self | Category\CategoryDto $category): self |
|
| 30 | 30 | { |
| 31 | 31 | $this->data->subCategories[] = $category; |
| 32 | 32 | |