Passed
Push — master ( 1c0e23...afe80e )
by Andrey
10:06
created

InternetDocument   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 31
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDocumentList() 0 18 1
1
<?php
2
3
namespace Daaner\NovaPoshta\Models;
4
5
use Daaner\NovaPoshta\NovaPoshta;
6
use Daaner\NovaPoshta\Traits\Limit;
7
use Daaner\NovaPoshta\Traits\DateTimes;
8
use Daaner\NovaPoshta\Traits\DocumentList;
9
10
class InternetDocument extends NovaPoshta
11
{
12
    use Limit, DateTimes, DocumentList;
13
14
    protected $model = 'InternetDocument';
15
    protected $calledMethod;
16
    protected $methodProperties = [];
17
18
    /**
19
     * @see https://devcenter.novaposhta.ua/docs/services/556eef34a0fe4f02049c664e/operations/557eb417a0fe4f02fc455b2c
20
     *
21
     * @return array
22
     */
23
    public function getDocumentList()
24
    {
25
        $this->calledMethod = 'getDocumentList';
26
27
        $this->getPage();
28
        $this->addLimit();
29
30
        //DateTime
31
        $this->getDateTime();
32
        $this->getDateTimeFromTo();
33
        // $this->getFullList();
34
35
36
        // $methodProperties = [
37
        //     'GetFullList' => 0,
38
        // ];
39
40
        return $this->getResponse($this->model, $this->calledMethod, $this->methodProperties, true);
41
    }
42
}
43