| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function execute($email, $name, $subject, $html, $author) |
||
| 47 | { |
||
| 48 | $transport = $this->helper->mail->getMailTransport(); |
||
|
|
|||
| 49 | $this->logger->debug(__METHOD__.' Sending email to: '.$email.' using transport: '.$transport); |
||
| 50 | $startTime = microtime(true); |
||
| 51 | |||
| 52 | $this->emailClient |
||
| 53 | ->getTransport($transport) |
||
| 54 | ->sendEmail($email, $name, $subject, $html, $author); |
||
| 55 | |||
| 56 | if (DEBUG) { |
||
| 57 | $this->logger->debug('Email sent in '.round(microtime(true) - $startTime, 6).' seconds'); |
||
| 58 | } |
||
| 59 | } |
||
| 60 | } |
||
| 61 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.