CashDesk   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRuleList() 0 4 1
A getPropertyMap() 0 3 1
A getPath() 0 3 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 CashDesk extends RequestPage
11
{
12
	public $method = 'GET';
13
	protected $path = '/v1/cashboxes/';
14
15
	/** @var integer */
16
	public $id;
17
18
	/**
19
	 * @inheritDoc
20
	 */
21
	public function getPropertyMap(): array
22
	{
23
		return array_merge(parent::getPropertyMap(), [
24
		]);
25
	}
26
27
	/**
28
	 * @inheritDoc
29
	 */
30
	public function getRuleList(): array
31
	{
32
		return array_merge(parent::getRuleList(), [
33
			'id' => ['required', 'numeric'],
34
		]);
35
	}
36
37
	/**
38
	 * @inheritDoc
39
	 */
40
	public function getPath(): string
41
	{
42
		return $this->path . $this->id;
43
	}
44
}
45