CompletePurchaseRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getIncomingParametersBag() 0 4 1
1
<?php
2
/**
3
 * @link https://github.com/phpviet/omnipay-momo
4
 * @copyright (c) PHP Viet
5
 * @license [MIT](http://www.opensource.org/licenses/MIT)
6
 */
7
8
namespace Omnipay\MoMo\Message\AllInOne;
9
10
use Symfony\Component\HttpFoundation\ParameterBag;
11
12
/**
13
 * @link https://developers.momo.vn/#/docs/aio/?id=x%e1%bb%ad-l%c3%bd-k%e1%ba%bft-qu%e1%ba%a3-thanh-to%c3%a1n
14
 *
15
 * @author Vuong Minh <[email protected]>
16
 * @since 1.0.0
17
 */
18
class CompletePurchaseRequest extends AbstractIncomingRequest
19
{
20
    /**
21
     * {@inheritdoc}
22
     */
23
    protected function getIncomingParametersBag(): ParameterBag
24
    {
25
        return $this->httpRequest->query;
26
    }
27
}
28