| Total Complexity | 10 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class MailHelper |
||
| 14 | { |
||
| 15 | |||
| 16 | private $content; |
||
| 17 | private $sender_email; |
||
| 18 | private $sender_name; |
||
| 19 | private $to_email; |
||
| 20 | private $cc_email; |
||
| 21 | private $attachments; |
||
| 22 | private $subject; |
||
| 23 | |||
| 24 | public function sender($email, $name) { |
||
| 27 | } |
||
| 28 | |||
| 29 | public function subject($subject) { |
||
| 30 | $this->subject = $subject; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function content($content) { |
||
| 34 | $this->content = $content; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function to($email, $cc_email = null) { |
||
| 40 | } |
||
| 41 | |||
| 42 | public function addAttachment($url) { |
||
| 43 | $this->attachments[] = $url; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function send() { |
||
| 63 | }); |
||
| 64 | } |
||
| 65 | } |