Skip to content

Commit 3852a76

Browse files
AndreasAAndreas Allacher
and
Andreas Allacher
authored
Add new payload (#125)
Co-authored-by: Andreas Allacher <[email protected]>
1 parent 0698164 commit 3852a76

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Payload/AttributePayload.php

+5
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public function getType(): string
4848
return $this->payload->getStringValue('type');
4949
}
5050

51+
public function isTranslatable(): bool
52+
{
53+
return $this->payload->getNullableBoolValue('translatable', true) ?? false;
54+
}
55+
5156
/**
5257
* @return AttributeTranslationPayload[]
5358
*/

Payload/AttributeValuePayload.php

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public function getCode(): string
3232
return $this->payload->getStringValue('code');
3333
}
3434

35+
public function getLocaleCode(): ?string
36+
{
37+
return $this->payload->getNullableStringValue('localeCode', true);
38+
}
39+
3540
/**
3641
* @return mixed
3742
*/

0 commit comments

Comments
 (0)