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

TargetLocatorException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 4
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