Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class EmailSender implements SenderInterface
- {
- # prev behavior
- public function accept(Visitor $visitor)
- {
- $visitor->visitSenderEmail($this);
- }
- }
- class SmsSender implements SenderInterface
- {
- # prev behavior
- public function accept(Visitor $visitor)
- {
- $visitor->visitSmsSender($this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement