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

AdapterException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 27
wmc 2
lcom 0
cbo 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setException() 0 4 1
A getException() 0 4 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