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

InternetDocument::getDocumentList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 18
rs 10
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