ReflectionExceptionFactory::reflectionInternal()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace DependencyInjection\Internal\Exception;
4
5
use \InvalidArgumentException;
6
use \RuntimeException;
7
use \LogicException;
8
use \ReflectionException;
9
10
class ReflectionExceptionFactory
11
{
12
    public static function invalidArgument($message, $code = 0)
13
    {
14
        return new \InvalidArgumentException($message, $code);
15
    }
16
17
    public static function runtime($message, $code = 0)
18
    {
19
        return new \RuntimeException($message, $code);
20
    }
21
22
    public static function logic($message, $code = 0)
23
    {
24
        return new \LogicException($message, $code);
25
    }
26
27
    public static function reflectionInternal($message, $code = 0)
28
    {
29
        return new \ReflectionException($message, $code);
30
    }
31
}
32