GetContacts::getUri()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Fousky\Component\iDoklad\Functions\Contacts;
4
5
use Fousky\Component\iDoklad\Functions\iDokladAbstractFunction;
6
use Fousky\Component\iDoklad\Model\Contacts\ContactCollectionModel;
7
8
/**
9
 * @see https://app.idoklad.cz/developer/Help/v2/cs/Api?apiId=GET-api-v2-Contacts
10
 *
11
 * @author Lukáš Brzák <[email protected]>
12
 */
13
class GetContacts extends iDokladAbstractFunction
14
{
15
    /**
16
     * @return string
17
     */
18
    public function getModelClass(): string
19
    {
20
        return ContactCollectionModel::class;
21
    }
22
23
    /**
24
     * GET|POST|PUT|DELETE e.g.
25
     *
26
     * @return string
27
     */
28
    public function getHttpMethod(): string
29
    {
30
        return 'GET';
31
    }
32
33
    /**
34
     * Return base URI, e.g. /invoices; /invoice/1/edit and so on.
35
     *
36
     * @return string
37
     */
38
    public function getUri(): string
39
    {
40
        return 'Contacts';
41
    }
42
43
    /**
44
     * @return array
45
     */
46
    public function getGuzzleOptions(): array
47
    {
48
        return [];
49
    }
50
}
51