IncomingResponse::__construct()   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 2
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\Common\Message\RequestInterface;
12
13
/**
14
 * @author Vuong Minh <[email protected]>
15
 * @since 1.0.0
16
 */
17
class IncomingResponse extends Response
18
{
19
    use Concerns\ResponseSignatureValidation;
20
21
    /**
22
     * {@inheritdoc}
23
     * @throws \Omnipay\Common\Exception\InvalidResponseException
24
     */
25
    public function __construct(RequestInterface $request, $data)
26
    {
27
        parent::__construct($request, $data);
28
29
        $this->validateSignature();
30
    }
31
}
32