| Total Complexity | 7 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 60% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class YaKassaRequest |
||
| 19 | { |
||
| 20 | /** @var ParameterBag */ |
||
| 21 | private $parameters; |
||
| 22 | |||
| 23 | 6 | public function __construct(array $parameters) |
|
| 24 | { |
||
| 25 | 6 | $this->parameters = new ParameterBag($parameters); |
|
| 26 | 6 | } |
|
| 27 | |||
| 28 | 6 | public function getAction(): string |
|
| 29 | { |
||
| 30 | 6 | return $this->get('action'); |
|
| 31 | } |
||
| 32 | |||
| 33 | public function getOrderNumber(): string |
||
| 36 | } |
||
| 37 | |||
| 38 | public function getCustomerNumber(): string |
||
| 41 | } |
||
| 42 | |||
| 43 | public function getInvoiceId(): string |
||
| 44 | { |
||
| 45 | return $this->get('invoiceId'); |
||
| 46 | } |
||
| 47 | |||
| 48 | 6 | public function get(string $name): string |
|
| 51 | } |
||
| 52 | |||
| 53 | 6 | public function all(): array |
|
| 58 |