From 703adcc6dc38a3f8f4f3a964c481d1e67f89585a Mon Sep 17 00:00:00 2001 From: Eshop Bot Date: Tue, 14 Nov 2023 08:55:03 +0000 Subject: [PATCH] Automated rebuild from definitions --- src/Entity/ContactApiEntity.php | 4 ++++ src/FieldConfig/ContactApiFieldConfig.php | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/Entity/ContactApiEntity.php b/src/Entity/ContactApiEntity.php index 7d6f628..5768f7b 100644 --- a/src/Entity/ContactApiEntity.php +++ b/src/Entity/ContactApiEntity.php @@ -36,6 +36,10 @@ public function getCity(): ?string { return $this->returnField('city'); } + public function getRegion(): ?string { + return $this->returnField('region'); + } + public function getCountry(): ?string { return $this->returnField('country'); } diff --git a/src/FieldConfig/ContactApiFieldConfig.php b/src/FieldConfig/ContactApiFieldConfig.php index ba7abf2..c98f6a6 100644 --- a/src/FieldConfig/ContactApiFieldConfig.php +++ b/src/FieldConfig/ContactApiFieldConfig.php @@ -46,6 +46,12 @@ public function withCity(): self { return $this; } + public function withRegion(): self { + $this->fields['region'] = true; + + return $this; + } + public function withCountry(): self { $this->fields['country'] = true;