1 | <?php |
||
6 | abstract class Mail{ |
||
7 | |||
8 | private $mail ; |
||
9 | |||
10 | function __construct(Mailer $mail){ |
||
13 | |||
14 | /** |
||
15 | * Deliverable Method for all emails |
||
16 | * @param [type] $user User Object |
||
17 | * @param [type] $subject Subject of Email |
||
18 | * @param [type] $view HTML File for email |
||
19 | * @param array $data Arrays containing data passed to email template |
||
20 | * @return [type] [description] |
||
21 | */ |
||
22 | public function deliver($user, $subject, $view, $data = []){ |
||
28 | |||
29 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.