Skip to content

Commit 3942a1b

Browse files
committed
feat: expand UserModel class
1 parent f97d6b5 commit 3942a1b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/PrefillGravityForms/Models/UserModel.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,19 @@ public function fullName(bool $withInitials = false): string
9292

9393
return implode(' ', array_filter($nameParts));
9494
}
95+
96+
public function zipcode(): string
97+
{
98+
return (string) ($this->data['verblijfplaats']['postcode'] ?? '');
99+
}
100+
101+
public function houseNumber(): string
102+
{
103+
return (string) ($this->data['verblijfplaats']['huisnummer'] ?? '');
104+
}
105+
106+
public function houseLetter(): string
107+
{
108+
return (string) ($this->data['verblijfplaats']['huisletter'] ?? '');
109+
}
95110
}

0 commit comments

Comments
 (0)