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

Misc   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 97
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 97
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A createCall() 0 3 1
A getReasonDeny() 0 3 1
A getOffices() 0 3 1
A getCurrency() 0 3 1
A getManagers() 0 3 1
A createMail() 0 3 1
A createAvia() 0 3 1
1
<?php
2
3
namespace Uon\Endpoints;
4
5
use Uon\Client;
6
7
/**
8
 * Class Misc
9
 *
10
 * @package    Uon\Endpoint
11
 * @deprecated Will be removed in 2.1
12
 */
13
class Misc extends Client
14
{
15
    /**
16
     * Add flights into voucher
17
     *
18
     * https://api.u-on.ru/{key}/avia/create.{_format}
19
     *
20
     * @param array $parameters List of parameters
21
     *
22
     * @return \Uon\Interfaces\ClientInterface
23
     * @deprecated Use \Uon\Endpoints\Avia::create(array $parameters) instead
24
     */
25
    public function createAvia(array $parameters)
26
    {
27
        return $this->avia->create($parameters);
28
    }
29
30
    /**
31
     * Add information about call
32
     *
33
     * https://api.u-on.ru/{key}/call_history/create.{_format}
34
     *
35
     * @param array $parameters List of parameters
36
     *
37
     * @return \Uon\Interfaces\ClientInterface
38
     * @deprecated Use \Uon\Endpoints\CallHistory::create(array $parameters)
39
     */
40
    public function createCall(array $parameters)
41
    {
42
        return $this->callHistory->create($parameters);
43
    }
44
45
    /**
46
     * Add information about mail item
47
     *
48
     * https://api.u-on.ru/{key}/mail/create.{_format}
49
     *
50
     * @param array $parameters List of parameters
51
     *
52
     * @return \Uon\Interfaces\ClientInterface
53
     * @deprecated Use \Uon\Endpoints\Mail::create(array $parameters)
54
     */
55
    public function createMail(array $parameters)
56
    {
57
        return $this->mails->create($parameters);
58
    }
59
60
    /**
61
     * Get a list of currencies
62
     *
63
     * https://api.u-on.ru/{key}/currency.{_format}
64
     *
65
     * @return \Uon\Interfaces\ClientInterface
66
     * @deprecated Use \Uon\Endpoints\Currencies::all()
67
     */
68
    public function getCurrency()
69
    {
70
        return $this->currencies->all();
71
    }
72
73
    /**
74
     * Get a list of managers
75
     *
76
     * https://api.u-on.ru/{key}/manager.{_format}
77
     *
78
     * @return \Uon\Interfaces\ClientInterface
79
     * @deprecated Use \Uon\Endpoints\Managers::all()
80
     */
81
    public function getManagers()
82
    {
83
        return $this->managers->all();
84
    }
85
86
    /**
87
     * Get the list of offices
88
     *
89
     * https://api.u-on.ru/{key}/company-office.{_format}
90
     *
91
     * @return \Uon\Interfaces\ClientInterface
92
     * @deprecated Use \Uon\Endpoints\Offices::all()
93
     */
94
    public function getOffices()
95
    {
96
        return $this->offices->all();
97
    }
98
99
    /**
100
     * Get reason deny list
101
     *
102
     * https://api.u-on.ru/{key}/reason_deny.{_format}
103
     *
104
     * @return \Uon\Interfaces\ClientInterface
105
     * @deprecated Use \Uon\Endpoints\ReasonsDeny::all()
106
     */
107
    public function getReasonDeny()
108
    {
109
        return $this->reasonsDeny->all();
110
    }
111
112
}
113