@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | $this->variants = new Variants(); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | - public function getId(): ?int |
|
| 24 | + public function getId(): ? int |
|
| 25 | 25 | { |
| 26 | 26 | return $this->id; |
| 27 | 27 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $this->id = $id; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - public function getImages(): ?array |
|
| 34 | + public function getImages(): ? array |
|
| 35 | 35 | { |
| 36 | 36 | return $this->images; |
| 37 | 37 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $this->images = $images; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - public function getVariants(): ?Variants |
|
| 44 | + public function getVariants(): ? Variants |
|
| 45 | 45 | { |
| 46 | 46 | return $this->variants; |
| 47 | 47 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $this->variants = $variants; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - public function getName(): ?string |
|
| 54 | + public function getName(): ? string |
|
| 55 | 55 | { |
| 56 | 56 | return $this->name; |
| 57 | 57 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | $this->name = $name; |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - public function getDescription(): ?string |
|
| 64 | + public function getDescription(): ? string |
|
| 65 | 65 | { |
| 66 | 66 | return $this->description; |
| 67 | 67 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $this->description = $description; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - public function getNotes(): ?string |
|
| 74 | + public function getNotes(): ? string |
|
| 75 | 75 | { |
| 76 | 76 | return $this->notes; |
| 77 | 77 | } |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | $this->notes = $notes; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | - public function getCreationDatetime(): ?DateTime |
|
| 84 | + public function getCreationDatetime(): ? DateTime |
|
| 85 | 85 | { |
| 86 | 86 | return $this->creation_datetime; |
| 87 | 87 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | $this->creation_datetime = $creation_datetime; |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - public function getModificationDatetime(): ?DateTime |
|
| 94 | + public function getModificationDatetime(): ? DateTime |
|
| 95 | 95 | { |
| 96 | 96 | return $this->modification_datetime; |
| 97 | 97 | } |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | private $creation_datetime; |
| 14 | 14 | private $modification_datetime; |
| 15 | 15 | |
| 16 | - public function getId(): ?int |
|
| 16 | + public function getId(): ? int |
|
| 17 | 17 | { |
| 18 | 18 | return $this->id; |
| 19 | 19 | } |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $this->id = $id; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | - public function getPriceListId(): ?int |
|
| 26 | + public function getPriceListId(): ? int |
|
| 27 | 27 | { |
| 28 | 28 | return $this->price_list_id; |
| 29 | 29 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $this->price_list_id = $price_list_id; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public function getCurrency(): ?string |
|
| 36 | + public function getCurrency(): ? string |
|
| 37 | 37 | { |
| 38 | 38 | return $this->currency; |
| 39 | 39 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $this->currency = $currency; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - public function getPrice(): ?int |
|
| 46 | + public function getPrice(): ? int |
|
| 47 | 47 | { |
| 48 | 48 | return $this->price; |
| 49 | 49 | } |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $this->price = $price; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - public function getCreationDatetime(): ?DateTime |
|
| 56 | + public function getCreationDatetime(): ? DateTime |
|
| 57 | 57 | { |
| 58 | 58 | return $this->creation_datetime; |
| 59 | 59 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $this->creation_datetime = $creation_datetime; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - public function getModificationDatetime(): ?DateTime |
|
| 66 | + public function getModificationDatetime(): ? DateTime |
|
| 67 | 67 | { |
| 68 | 68 | return $this->modification_datetime; |
| 69 | 69 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | private $creation_datetime; |
| 13 | 13 | private $modification_datetime; |
| 14 | 14 | |
| 15 | - public function getId(): ?int |
|
| 15 | + public function getId(): ? int |
|
| 16 | 16 | { |
| 17 | 17 | return $this->id; |
| 18 | 18 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $this->id = $id; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - public function getLabel(): ?string |
|
| 25 | + public function getLabel(): ? string |
|
| 26 | 26 | { |
| 27 | 27 | return $this->label; |
| 28 | 28 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $this->label = $label; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function getValue(): ?string |
|
| 35 | + public function getValue(): ? string |
|
| 36 | 36 | { |
| 37 | 37 | return $this->value; |
| 38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $this->value = $value; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - public function getCreationDatetime(): ?DateTime |
|
| 45 | + public function getCreationDatetime(): ? DateTime |
|
| 46 | 46 | { |
| 47 | 47 | return $this->creation_datetime; |
| 48 | 48 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $this->creation_datetime = $creation_datetime; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function getModificationDatetime(): ?DateTime |
|
| 55 | + public function getModificationDatetime(): ? DateTime |
|
| 56 | 56 | { |
| 57 | 57 | return $this->modification_datetime; |
| 58 | 58 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $this->prices = new Prices(); |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function getId(): ?int |
|
| 35 | + public function getId(): ? int |
|
| 36 | 36 | { |
| 37 | 37 | return $this->id; |
| 38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $this->id = $id; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - public function getImages(): ?array |
|
| 45 | + public function getImages(): ? array |
|
| 46 | 46 | { |
| 47 | 47 | return $this->images; |
| 48 | 48 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $this->images = $images; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function getOptions(): ?Options |
|
| 55 | + public function getOptions(): ? Options |
|
| 56 | 56 | { |
| 57 | 57 | return $this->options; |
| 58 | 58 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $this->options = $options; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - public function getCodes(): ?Codes |
|
| 65 | + public function getCodes(): ? Codes |
|
| 66 | 66 | { |
| 67 | 67 | return $this->codes; |
| 68 | 68 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $this->codes = $codes; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - public function getPrices(): ?Prices |
|
| 75 | + public function getPrices(): ? Prices |
|
| 76 | 76 | { |
| 77 | 77 | return $this->prices; |
| 78 | 78 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $this->prices = $prices; |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - public function getDescription(): ?string |
|
| 85 | + public function getDescription(): ? string |
|
| 86 | 86 | { |
| 87 | 87 | return $this->description; |
| 88 | 88 | } |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | $this->description = $description; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - public function getNotes(): ?string |
|
| 95 | + public function getNotes(): ? string |
|
| 96 | 96 | { |
| 97 | 97 | return $this->notes; |
| 98 | 98 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | $this->notes = $notes; |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | - public function getWeightUnit(): ?string |
|
| 105 | + public function getWeightUnit(): ? string |
|
| 106 | 106 | { |
| 107 | 107 | return $this->weight_unit; |
| 108 | 108 | } |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $this->weight_unit = $weight_unit; |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - public function getLengthUnit(): ?string |
|
| 115 | + public function getLengthUnit(): ? string |
|
| 116 | 116 | { |
| 117 | 117 | return $this->length_unit; |
| 118 | 118 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | $this->length_unit = $length_unit; |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | - public function getWeight(): ?float |
|
| 125 | + public function getWeight(): ? float |
|
| 126 | 126 | { |
| 127 | 127 | return $this->weight; |
| 128 | 128 | } |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | $this->weight = $weight; |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - public function getWidth(): ?float |
|
| 135 | + public function getWidth(): ? float |
|
| 136 | 136 | { |
| 137 | 137 | return $this->width; |
| 138 | 138 | } |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | $this->width = $width; |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | - public function getHeight(): ?float |
|
| 145 | + public function getHeight(): ? float |
|
| 146 | 146 | { |
| 147 | 147 | return $this->height; |
| 148 | 148 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $this->height = $height; |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | - public function getDepth(): ?float |
|
| 155 | + public function getDepth(): ? float |
|
| 156 | 156 | { |
| 157 | 157 | return $this->depth; |
| 158 | 158 | } |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | $this->depth = $depth; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | - public function getCreationDatetime(): ?DateTime |
|
| 165 | + public function getCreationDatetime(): ? DateTime |
|
| 166 | 166 | { |
| 167 | 167 | return $this->creation_datetime; |
| 168 | 168 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $this->creation_datetime = $creation_datetime; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - public function getModificationDatetime(): ?DateTime |
|
| 175 | + public function getModificationDatetime(): ? DateTime |
|
| 176 | 176 | { |
| 177 | 177 | return $this->modification_datetime; |
| 178 | 178 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | private $creation_datetime; |
| 13 | 13 | private $modification_datetime; |
| 14 | 14 | |
| 15 | - public function getId(): ?int |
|
| 15 | + public function getId(): ? int |
|
| 16 | 16 | { |
| 17 | 17 | return $this->id; |
| 18 | 18 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $this->id = $id; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | - public function getLabel(): ?string |
|
| 25 | + public function getLabel(): ? string |
|
| 26 | 26 | { |
| 27 | 27 | return $this->label; |
| 28 | 28 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $this->label = $label; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | - public function getValue(): ?string |
|
| 35 | + public function getValue(): ? string |
|
| 36 | 36 | { |
| 37 | 37 | return $this->value; |
| 38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $this->value = $value; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - public function getCreationDatetime(): ?DateTime |
|
| 45 | + public function getCreationDatetime(): ? DateTime |
|
| 46 | 46 | { |
| 47 | 47 | return $this->creation_datetime; |
| 48 | 48 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | $this->creation_datetime = $creation_datetime; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function getModificationDatetime(): ?DateTime |
|
| 55 | + public function getModificationDatetime(): ? DateTime |
|
| 56 | 56 | { |
| 57 | 57 | return $this->modification_datetime; |
| 58 | 58 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function jsonSerialize() |
| 25 | 25 | { |
| 26 | - return array_map(function (JsonSerializable $item) { |
|
| 26 | + return array_map(function(JsonSerializable $item) { |
|
| 27 | 27 | return $item->jsonSerialize(); |
| 28 | 28 | }, $this->items); |
| 29 | 29 | } |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | { |
| 75 | 75 | $headers['Content-Type'] = 'application/json'; |
| 76 | 76 | if ($this->accessToken !== null) { |
| 77 | - $headers['Authorization'] = 'Bearer ' . $this->accessToken; |
|
| 77 | + $headers['Authorization'] = 'Bearer '.$this->accessToken; |
|
| 78 | 78 | } |
| 79 | 79 | $body = null; |
| 80 | 80 | if ($params) { |