Email::status()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace ElasticEmail\Email;
4
5
use ElasticEmail\Client;
6
7
/**
8
 * Access to Email API end points.
9
 * @see http://api.elasticemail.com/public/help#Email_header
10
 */
11
class Email
12
{
13
    /** @var Client */
14
    private $client;
15
16
    public function __construct(Client $client)
17
    {
18
        $this->client = $client;
19
    }
20
21
    public function send(array $params = [], $attachmentPaths = []): Send
22
    {
23
        $send = new Send($this->client);
24
25
        return $send->handle($params, $attachmentPaths);
26
    }
27
28
    public function status()
29
    {
30
        return new Status($this->client);
31
    }
32
}
33