| @@ 9-29 (lines=21) @@ | ||
| 6 | use Psr\Http\Message\RequestInterface; |
|
| 7 | use Psr\Http\Message\ResponseInterface; |
|
| 8 | ||
| 9 | class Fault11Exception extends FaultException |
|
| 10 | { |
|
| 11 | /** |
|
| 12 | * @var Fault |
|
| 13 | */ |
|
| 14 | private $fault; |
|
| 15 | ||
| 16 | public function __construct(Fault $fault, ResponseInterface $response, RequestInterface $request, \Exception $previous = null) |
|
| 17 | { |
|
| 18 | parent::__construct($response, $request, $previous); |
|
| 19 | $this->fault = $fault; |
|
| 20 | } |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @return Fault |
|
| 24 | */ |
|
| 25 | public function getFault() |
|
| 26 | { |
|
| 27 | return $this->fault; |
|
| 28 | } |
|
| 29 | } |
|
| 30 | ||
| @@ 9-29 (lines=21) @@ | ||
| 6 | use Psr\Http\Message\RequestInterface; |
|
| 7 | use Psr\Http\Message\ResponseInterface; |
|
| 8 | ||
| 9 | class Fault12Exception extends FaultException |
|
| 10 | { |
|
| 11 | /** |
|
| 12 | * @var Fault |
|
| 13 | */ |
|
| 14 | private $fault; |
|
| 15 | ||
| 16 | public function __construct(Fault $fault, ResponseInterface $response, RequestInterface $request, \Exception $previous = null) |
|
| 17 | { |
|
| 18 | parent::__construct($response, $request, $previous); |
|
| 19 | $this->fault = $fault; |
|
| 20 | } |
|
| 21 | ||
| 22 | /** |
|
| 23 | * @return Fault |
|
| 24 | */ |
|
| 25 | public function getFault() |
|
| 26 | { |
|
| 27 | return $this->fault; |
|
| 28 | } |
|
| 29 | } |
|
| 30 | ||