Skip to content

Commit

Permalink
Added the getAddress2() method to the Address interface
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Apr 24, 2024
1 parent 7275504 commit 16f1f3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/Dummies/DummyAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,9 @@ public function getAddress(): string
{
return $this->address ?? '';
}

public function getAddress2(): ?string
{
return null;
}
}
5 changes: 5 additions & 0 deletions Traits/AddressModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ public function getAddress(): string
{
return $this->address ?: '';
}

public function getAddress2(): ?string
{
return $this->address2 ?? null;
}
}

0 comments on commit 16f1f3b

Please sign in to comment.