Passed
Push — master ( a99763...fbfe14 )
by Andrey
03:27
created

CarCallGeneral::getOrdersList()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 7
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 CarCallGeneral extends NovaPoshta
8
{
9
10
    protected $model = 'CarCallGeneral';
11
    protected $calledMethod;
12
    protected $methodProperties = null;
13
14
    /**
15
     * Получение списка ордеров для заказа авто.
16
     *
17
     * @since 2022-11-05 НЕ ДОКУМЕНТИРОВАНО
18
     *
19
     * @param bool $extendedInfo Расширенная информация
20
     * @return array
21
     */
22
    public function getOrdersList(bool $extendedInfo = true): array
23
    {
24
        $this->calledMethod = 'getOrdersList';
25
26
        $this->methodProperties['getExtendedInfo'] = $extendedInfo;
27
28
        return $this->getResponse($this->model, $this->calledMethod, $this->methodProperties, true);
29
    }
30
31
32
}
33