Completed
Push — master ( 5c6f77...9539a1 )
by Mr
25s queued 11s
created

Notifications::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Uon\Endpoints;
4
5
use Uon\Client;
6
7
class Notifications extends Client
8
{
9
    /**
10
     * Display flash message to managers
11
     *
12
     * @link https://api.u-on.ru/{key}/notification/create.{_format}
13
     *
14
     * @param array $parameters List of parameters
15
     *
16
     * @return null|object|\Uon\Interfaces\ClientInterface
17
     */
18
    public function create(array $parameters)
19
    {
20
        // Set HTTP params
21
        $this->type     = 'post';
22
        $this->endpoint = 'notification/create';
23
        $this->params   = $parameters;
24
25
        return $this->done();
26
    }
27
}
28