Mails::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 8
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Uon\Endpoints;
4
5
use Uon\Client;
6
7
/**
8
 * Class Mails
9
 *
10
 * @package Uon\Endpoints
11
 * @since   2.0
12
 */
13
class Mails extends Client
14
{
15
    /**
16
     * Add information about mail item
17
     *
18
     * @link https://api.u-on.ru/{key}/mail/create.{_format}
19
     *
20
     * @param array $parameters List of parameters
21
     *
22
     * @return null|object|\Uon\Interfaces\ClientInterface
23
     */
24
    public function create(array $parameters)
25
    {
26
        // Set HTTP params
27
        $this->type     = 'post';
28
        $this->endpoint = 'mail/create';
29
        $this->params   = $parameters;
30
31
        return $this->done();
32
    }
33
}
34