MalformedFile   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getFilePath() 0 4 1
1
<?php
2
3
namespace Koriit\PHPDeps\Tokenizer\Exceptions;
4
5
use Exception;
6
7
class MalformedFile extends Exception
8
{
9
    /**
10
     * @var string
11
     */
12
    private $filePath;
13
14
    public function __construct($filePath, $cause = null)
15
    {
16
        parent::__construct('Malformed file: ' . $filePath, 0, $cause);
17
18
        $this->filePath = $filePath;
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function getFilePath()
25
    {
26
        return $this->filePath;
27
    }
28
}
29