Passed
Push — master ( 8db20a...7c0ad0 )
by Andrey
03:28
created

CommonGeneral::getMessageCodeText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Daaner\NovaPoshta\Models;
4
5
use Daaner\NovaPoshta\NovaPoshta;
6
7
class CommonGeneral extends NovaPoshta
8
{
9
    protected $model = 'CommonGeneral';
10
    protected $calledMethod;
11
    protected $methodProperties = null;
12
13
    public function getMessageCodeText()
14
    {
15
        $this->calledMethod = 'getMessageCodeText';
16
17
        return $this->getResponse($this->model, $this->calledMethod, $this->methodProperties);
18
    }
19
20
    // не работает, требует JWT авторизацию
21
    public function prolongateKey($ApiKey, $month = 12)
22
    {
23
        $this->calledMethod = 'prolongateApiKey';
24
25
        $this->methodProperties['ApiKey'] = $ApiKey;
26
        $this->methodProperties['prolongateMounthCount'] = $month;
27
28
        return $this->getResponse($this->model, $this->calledMethod, $this->methodProperties);
29
    }
30
}
31