NetworkErrorException   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 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getGuzzleClientException() 0 4 1
A setGuzzleClientException() 0 4 1
1
<?php
2
3
namespace ninjacto\OrtcPhp\Exceptions;
4
5
use GuzzleHttp\Exception\ClientException;
6
7
class NetworkErrorException extends OrtcException
8
{
9
    protected $message = 'Error in network connection';
10
11
    /**
12
     * @var ClientException
13
     */
14
    private $guzzleClientException;
15
16
    /**
17
     * @return ClientException
18
     */
19 1
    public function getGuzzleClientException()
20
    {
21 1
        return $this->guzzleClientException;
22
    }
23
24
    /**
25
     * @param ClientException $guzzleClientException
26
     */
27 1
    public function setGuzzleClientException(ClientException $guzzleClientException)
28
    {
29 1
        $this->guzzleClientException = $guzzleClientException;
30 1
    }
31
}
32