Completed
Push — master ( 556987...94c24e )
by ARCANEDEV
9s
created

SignatureVerificationException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
dl 0
loc 44
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getSignatureHeader() 0 4 1
1
<?php namespace Arcanedev\Stripe\Exceptions;
2
3
/**
4
 * Class     SignatureVerificationException
5
 *
6
 * @package  Arcanedev\Stripe\Exceptions
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class SignatureVerificationException extends StripeException
10
{
11
    /* -----------------------------------------------------------------
12
     |  Properties
13
     | -----------------------------------------------------------------
14
     */
15
16
    /** @var string */
17
    protected $signatureHeader;
18
19
    /* -----------------------------------------------------------------
20
     |  Constructor
21
     | -----------------------------------------------------------------
22
     */
23
24
    /**
25
     * SignatureVerificationException constructor.
26
     *
27
     * @param  string  $message
28
     * @param  string  $signatureHeader
29
     * @param  null    $httpBody
30
     */
31 15
    public function __construct($message, $signatureHeader, $httpBody = null)
32
    {
33 15
        parent::__construct($message, null, $httpBody, null, null);
34
35 15
        $this->signatureHeader = $signatureHeader;
36 15
    }
37
38
    /* -----------------------------------------------------------------
39
     |  Getters & Setters
40
     | -----------------------------------------------------------------
41
     */
42
43
    /**
44
     * Get the signature header.
45
     *
46
     * @return string
47
     */
48
    public function getSignatureHeader()
49
    {
50
        return $this->signatureHeader;
51
    }
52
}
53