Passed
Push — master ( a0f706...e96b77 )
by Andrey
09:31
created

ScanSheet   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getScanSheet() 0 8 1
A getScanSheetList() 0 5 1
1
<?php
2
3
namespace Daaner\NovaPoshta\Models;
4
5
use Daaner\NovaPoshta\NovaPoshta;
6
7
8
class ScanSheet extends NovaPoshta
9
{
10
    protected $model = 'ScanSheet';
11
    protected $calledMethod;
12
    protected $methodProperties = null;
13
14
    /**
15
     * @see https://devcenter.novaposhta.ua/docs/services/55662bd3a0fe4f10086ec96e/operations/556c7734a0fe4f08e8f7ce31
16
     *
17
     * @return array
18
     */
19
    public function getScanSheetList()
20
    {
21
        $this->calledMethod = 'getScanSheetList';
22
23
        return $this->getResponse($this->model, $this->calledMethod, $this->methodProperties, true);
24
    }
25
26
    /**
27
     * @see https://devcenter.novaposhta.ua/docs/services/55662bd3a0fe4f10086ec96e/operations/556c72d7a0fe4f08e8f7ce30
28
     *
29
     * @param string $ref
30
     * @return array
31
     */
32
    public function getScanSheet($ref)
33
    {
34
        $this->calledMethod = 'getScanSheet';
35
36
        $this->methodProperties = [];
37
        $this->methodProperties['Ref'] = $ref;
38
39
        return $this->getResponse($this->model, $this->calledMethod, $this->methodProperties, true);
40
    }
41
}
42