Skip to content

Commit 967c4aa

Browse files
committed
feat: add new getter method in entity
1 parent 85793fa commit 967c4aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/Packages/Domains/WorldHeritageEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function getUnescoSiteUrl(): ?string
125125

126126
public function getStatePartyCodes(): array
127127
{
128-
return $this->statePartyCodes;
128+
return $this->statePartyCodes ?: $this->getStatePartyCodesOrFallback();
129129
}
130130

131131
public function getStatePartyMeta(): array

0 commit comments

Comments
 (0)