CarCallGeneral::getOrdersList()   A
last analyzed

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