FailedResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of Smsa WebService package.
5
 * (c) Hamoud Alhoqbani <[email protected]>
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Alhoqbani\SmsaWebService\Exceptions;
11
12
use Alhoqbani\SmsaWebService\Response\SMSAResponse;
13
use Throwable;
14
15
class FailedResponse extends SmsaWebServiceException
16
{
17
    public function __construct(SMSAResponse $smsaResponse, string $message = '', int $code = 0, Throwable $previous = null)
18
    {
19
        parent::__construct($message, $code, $previous);
20
        $this->smsaResponse = $smsaResponse;
21
    }
22
}
23