Mails   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 19
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 8 1
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