Completed
Push — master ( f38213...c5a8cb )
by Jared
02:23
created

AdapterException::setException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/**
4
 * @author Jared King <[email protected]>
5
 *
6
 * @link http://jaredtking.com
7
 *
8
 * @copyright 2015 Jared King
9
 * @license MIT
10
 */
11
namespace Pulsar\Exception;
12
13
use Exception;
14
15
class AdapterException extends ModelException
16
{
17
    /**
18
     * @var Exception
19
     */
20
    private $exception;
21
22
    /**
23
     * Sets the underlying exception.
24
     *
25
     * @param Exception $e
26
     */
27
    public function setException(Exception $e)
28
    {
29
        $this->exception = $e;
30
    }
31
32
    /**
33
     * Gets the underlying exception.
34
     *
35
     * @return Exception
36
     */
37
    public function getException()
38
    {
39
        return $this->exception;
40
    }
41
}
42