GetContacts   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 38
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getModelClass() 0 4 1
A getHttpMethod() 0 4 1
A getUri() 0 4 1
A getGuzzleOptions() 0 4 1
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