Skip to content

Commit

Permalink
Automated rebuild from definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Eshop Bot committed Nov 14, 2023
1 parent ffc5ecd commit 703adcc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Entity/ContactApiEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
6 changes: 6 additions & 0 deletions src/FieldConfig/ContactApiFieldConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 703adcc

Please sign in to comment.