From 16f1f3b6f8527b3c3299a6a3eacfdb06afc2d1bf Mon Sep 17 00:00:00 2001 From: Attila Fulop <1162360+fulopattila122@users.noreply.github.com> Date: Wed, 24 Apr 2024 17:58:36 +0300 Subject: [PATCH] Added the `getAddress2()` method to the `Address` interface --- Tests/Dummies/DummyAddress.php | 5 +++++ Traits/AddressModel.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Tests/Dummies/DummyAddress.php b/Tests/Dummies/DummyAddress.php index fba1728..0a1be11 100644 --- a/Tests/Dummies/DummyAddress.php +++ b/Tests/Dummies/DummyAddress.php @@ -57,4 +57,9 @@ public function getAddress(): string { return $this->address ?? ''; } + + public function getAddress2(): ?string + { + return null; + } } diff --git a/Traits/AddressModel.php b/Traits/AddressModel.php index 97cd3f6..63e7f00 100644 --- a/Traits/AddressModel.php +++ b/Traits/AddressModel.php @@ -66,4 +66,9 @@ public function getAddress(): string { return $this->address ?: ''; } + + public function getAddress2(): ?string + { + return $this->address2 ?? null; + } }