OAuthException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getErrorCode() 0 4 1
1
<?php namespace Arcanedev\Stripe\Exceptions\OAuth;
2
3
use Arcanedev\Stripe\Exceptions\StripeException;
4
5
/**
6
 * Class     OAuthException
7
 *
8
 * @package  Arcanedev\Stripe\Exceptions\OAuth
9
 * @author   ARCANEDEV <[email protected]>
10
 */
11
class OAuthException extends StripeException
12
{
13
    /* -----------------------------------------------------------------
14
     |  Constructor
15
     | -----------------------------------------------------------------
16
     */
17
18 8
    public function __construct(
19
        $code, $message, $httpStatus = null, $httpBody = null, $jsonBody = null, $httpHeaders = null
20
    ) {
21 8
        parent::__construct($message, $httpStatus, $httpBody, $jsonBody, $httpHeaders);
22
23 8
        $this->code = $code;
24 8
    }
25
26
    /* -----------------------------------------------------------------
27
     |  Getters & Setters
28
     | -----------------------------------------------------------------
29
     */
30
31 8
    public function getErrorCode()
32
    {
33 8
        return $this->code;
34
    }
35
}
36