NetworkErrorException::getGuzzleClientException()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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