Email   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A send() 0 5 1
A __construct() 0 3 1
1
<?php
2
/**
3
 * @author  Rizart Dokollari <[email protected]>
4
 * @since   12/24/17
5
 */
6
7
namespace ElasticEmail\Email;
8
9
use ElasticEmail\Client;
10
11
/**
12
 * Access to Email API end points.
13
 * @see http://api.elasticemail.com/public/help#Email_header
14
 */
15
class Email
16
{
17
    /** @var Client */
18
    private $client;
19
20
    public function __construct(Client $client)
21
    {
22
        $this->client = $client;
23
    }
24
25
    public function send(array $params = [])
26
    {
27
        $send = new Send($this->client);
28
29
        return $send->handle($params);
30
    }
31
}
32