AbstractRequest::initialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * @link https://github.com/phpviet/omnipay-vtcpay
4
 *
5
 * @copyright (c) PHP Viet
6
 * @license [MIT](https://opensource.org/licenses/MIT)
7
 */
8
9
namespace Omnipay\VTCPay\Message;
10
11
use Omnipay\VTCPay\Concerns\Parameters;
12
use Omnipay\VTCPay\Concerns\ParametersNormalize;
13
use Omnipay\Common\Message\AbstractRequest as BaseAbstractRequest;
14
15
/**
16
 * @author Vuong Minh <[email protected]>
17
 * @since 1.0.0
18
 */
19
abstract class AbstractRequest extends BaseAbstractRequest
20
{
21
    use Parameters;
22
    use ParametersNormalize;
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function initialize(array $parameters = [])
28
    {
29
        return parent::initialize(
30
            $this->normalizeParameters($parameters)
31
        );
32
    }
33
}
34