| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait Mailto |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Returns the context object |
||
| 24 | * |
||
| 25 | * @return \Aimeos\MShop\Context\Item\Iface Context object |
||
| 26 | */ |
||
| 27 | abstract function context() : \Aimeos\MShop\Context\Item\Iface; |
||
|
|
|||
| 28 | |||
| 29 | /** |
||
| 30 | * Prepares and returns a new mail message |
||
| 31 | * |
||
| 32 | * @param \Aimeos\MShop\Common\Item\Address\Iface $addr Address item object |
||
| 33 | * @return \Aimeos\MW\Mail\Message\Iface Prepared mail message |
||
| 34 | */ |
||
| 35 | protected function mailTo( \Aimeos\MShop\Common\Item\Address\Iface $addr ) : \Aimeos\MW\Mail\Message\Iface |
||
| 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.