Completed
Push — master ( 31f8bb...a02425 )
by Joao
05:56
created

SendMailWrapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A send() 0 4 1
1
<?php
2
3
namespace ByJG\Mail\Wrapper;
4
5
use ByJG\Mail\Envelope;
6
7
class SendMailWrapper implements MailWrapperInterface
8
{
9
10
    public function send(Envelope $envelope)
11
    {
12
        mail($envelope->getTo(), $envelope->getSubject(), $envelope->getBody());
13
    }
14
}
15