Passed
Push — master ( 1b90b9...7956e0 )
by Gabriel
03:50 queued 11s
created

IOException::getPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Nip\Filesystem\Exception;
4
5
/**
6
 * Class IOException
7
 * @package Nip\Filesystem\Exception
8
 */
9
class IOException extends \RuntimeException
10
{
11
    private $path;
12
13
    public function __construct($message, $code = 0, \Exception $previous = null, $path = null)
14
    {
15
        $this->path = $path;
16
        parent::__construct($message, $code, $previous);
17
    }
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getPath()
23
    {
24
        return $this->path;
25
    }
26
}
27