Completed
Pull Request — master (#132)
by
unknown
06:43 queued 04:56
created

TargetLocatorException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getResource() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Zippy.
5
 *
6
 * (c) Alchemy <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Alchemy\Zippy\Exception;
13
14
class TargetLocatorException extends RuntimeException
15
{
16
    private $resource;
17
18
    public function __construct($resource, $message, $code = 0, $previous = null)
19
    {
20
        $this->resource = $resource;
21
        parent::__construct($message, $code, $previous);
22
    }
23
24
    public function getResource()
25
    {
26
        return $this->resource;
27
    }
28
}
29