IOException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A initializeFromError() 0 4 1
1
<?php
2
/**
3
 * @file
4
 *
5
 * General IO exception.
6
 */
7
8
namespace QueryPath;
9
10
/**
11
 * Indicates that an input/output exception has occurred.
12
 *
13
 * @ingroup querypath_core
14
 */
15
class IOException extends \QueryPath\ParseException
16
{
17
18
    public static function initializeFromError($code, $str, $file, $line, $cxt)
19
    {
20
        $class = __CLASS__;
21
        throw new $class($str, $code, $file, $line);
22
    }
23
}
24