Passed
Push — master ( f86309...3fa716 )
by Mr
01:59 queued 22s
created

Chat   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php
2
3
namespace UON\Endpoint;
4
5
use UON\Client;
6
7
/**
8
 * Class Chat
9
 * @package UON
10
 */
11
class Chat extends Client
12
{
13
    /**
14
     * Send message from manager to another manager or tourist
15
     *
16
     * @link    https://api.u-on.ru/{key}/chat-message/create.{_format}
17
     * @param   array $parameters - List of parameters []
18
     * @return  array|false
19
     */
20
    public function create(array $parameters)
21
    {
22
        $endpoint = '/chat-message/create';
23
        return $this->doRequest('post', $endpoint, $parameters);
24
    }
25
}
26