Test Failed
Push — master ( 3dd85e...34f16b )
by Devin
04:34 queued 10s
created

OAuthBase::getErrorCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 4
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Stripe\Error\OAuth;
4
5 View Code Duplication
class OAuthBase extends \Stripe\Error\Base
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
6
{
7
    public function __construct(
8
        $code,
9
        $description,
10
        $httpStatus = null,
11
        $httpBody = null,
12
        $jsonBody = null,
13
        $httpHeaders = null
14
    ) {
15
        parent::__construct($description, $httpStatus, $httpBody, $jsonBody, $httpHeaders);
16
        $this->errorCode = $code;
17
    }
18
19
    public function getErrorCode()
20
    {
21
        return $this->errorCode;
22
    }
23
}
24