Email::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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