IOException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
c 1
b 0
f 1
dl 0
loc 16
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPath() 0 3 1
A __construct() 0 4 1
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