| 1 | <?php |
||
| 5 | class UserMailer { |
||
| 6 | |||
| 7 | private $userMailer; |
||
| 8 | |||
| 9 | function __construct(\UserMailer $userMailer) { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param $to |
||
| 15 | * @param $from |
||
| 16 | * @param $subject |
||
| 17 | * @param $body |
||
| 18 | * @param array $options |
||
| 19 | * @throws \MWException |
||
| 20 | */ |
||
| 21 | function send( $to, $from, $subject, $body, $options = [] ) { |
||
| 24 | } |
||
| 25 |
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.