| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | protected function mailTo( \Aimeos\MShop\Common\Item\Address\Iface $addr ) : \Aimeos\MW\Mail\Message\Iface |
||
| 36 | { |
||
| 37 | $context = $this->context(); |
||
| 38 | $config = $context->config(); |
||
| 39 | |||
| 40 | return $context->mail() |
||
| 41 | ->header( 'X-MailGenerator', 'Aimeos' ) |
||
| 42 | ->from( $config->get( 'resource/email/from-email' ), $config->get( 'resource/email/from-name' ) ) |
||
| 43 | ->to( $addr->getEMail(), $addr->getFirstName() . ' ' . $addr->getLastName() ); |
||
| 44 | } |
||
| 46 |
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.