Php   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A mail() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of slick/mail package
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Slick\Mail\Transport\Vendor;
11
12
/**
13
 * PHP mail class wrapper
14
 *
15
 * @package Slick\Mail\Transport\Vendor
16
 * @author  Filipe Silva <[email protected]>
17
 *
18
 * @codeCoverageIgnore
19
 */
20
class Php
21
{
22
23
    /**
24
     * Sends an email.
25
     *
26
     * @param string $to
27
     * @param string $subject
28
     * @param string $message
29
     * @param string $additionalHeaders
30
     *
31
     * @link http://php.net/manual/en/function.mail.php
32
     *
33
     * @return bool
34
     */
35
    public function mail($to, $subject, $message, $additionalHeaders = null)
36
    {
37
        return mail($to, $subject, $message, $additionalHeaders);
38
    }
39
}