Skip to content

Commit 745a141

Browse files
authored
Merge pull request #35 from MakarovIgor/master
add new methods to delivery model
2 parents b5635bf + 48a5d06 commit 745a141

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/Models/Receipts/Delivery.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,20 @@ public function phone(): string
3737
{
3838
return $this->phone;
3939
}
40+
41+
/**
42+
* @param string $email
43+
*/
44+
public function addEmail(string $email): void
45+
{
46+
$this->emails[] = $email;
47+
}
48+
49+
/**
50+
* @param string $phone
51+
*/
52+
public function setPhone(string $phone): void
53+
{
54+
$this->phone = $phone;
55+
}
4056
}

0 commit comments

Comments
 (0)