Passed
Push — master ( 2a07f9...7ea72d )
by Andrey
03:40
created

Payment::walletManagement()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace Daaner\NovaPoshta\Models;
4
5
use Daaner\NovaPoshta\NovaPoshta;
6
7
class Payment extends NovaPoshta
8
{
9
    protected $model = 'Payment';
10
    protected $calledMethod;
11
    protected $methodProperties = null;
12
13
    /***
14
     * Получение данных по картам оплаты.
15
     *
16
     * @return array
17
     */
18
    public function walletManagement(): array
19
    {
20
        $this->calledMethod = 'walletManagement';
21
22
        return $this->getResponse($this->model, $this->calledMethod, $this->methodProperties);
23
    }
24
}
25