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

Notifications   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 19
rs 10
c 0
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
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