| Conditions | 6 |
| Paths | 32 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 2 | public function __construct(array $config = null) |
|
| 30 | 2 | { |
|
| 31 | 2 | $this->mail = new Mail\Message(); |
|
| 32 | |||
| 33 | 2 | $this->transport = isset($config['transport']) ? $config['transport'] : new Mail\Transport\Sendmail(); |
|
| 34 | 2 | isset($config['from']) ? $this->mail->setTo($config['from']) : null; |
|
| 35 | 2 | isset($config['to']) ? $this->mail->setTo($config['to']) : null; |
|
| 36 | 2 | isset($config['subject']) ? $this->mail->setTo($config['subject']) : null; |
|
| 37 | 2 | isset($config['message']) ? $this->mail->setTo($config['message']) : null; |
|
| 38 | 2 | } |
|
| 39 | |||
| 125 | } |