CashDeskList   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPropertyMap() 0 4 1
A getRuleList() 0 4 1
1
<?php
2
3
namespace alekciy\ofd\providers\yandex\Request;
4
5
use alekciy\ofd\providers\yandex\RequestPage;
6
7
/**
8
 * Список касс.
9
 */
10
final class CashDeskList extends RequestPage
11
{
12
	public $method = 'GET';
13
	protected $path = '/v1/cashboxes';
14
15
	/** @var integer */
16
	public $outletId;
17
18
	/**
19
	 * @inheritDoc
20
	 */
21
	public function getPropertyMap(): array
22
	{
23
		return array_merge(parent::getPropertyMap(), [
24
			'outletId' => ['query' => 'retail_point_id'],
25
		]);
26
	}
27
28
	/**
29
	 * @inheritDoc
30
	 */
31
	public function getRuleList(): array
32
	{
33
		return array_merge(parent::getRuleList(), [
34
			'outletId' => ['numeric'],
35
		]);
36
	}
37
}
38