Completed
Pull Request — master (#49)
by Michael
02:04
created

Foo::foo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 3
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * test case
5
 */
6
namespace BarFail;
7
8
use A\B;
9
use A\Be;
10
use \DOMDocument as D;
11
use Exception;
12
use \DOMComment;
13
use Closure as MyClosure;
14
/**
15
 * Class Foo
16
 */
17
class Foo extends \DOMComment
18
{
19
    private $a = \DOMDocument::TEST;
20
21
    /**
22
     * method foo
23
     *
24
     * @param A\B          $b b
25
     * @param \DOMDocument $d d
26
     * @param \DOMDocument|int|A\B $f f
27
     *
28
     * @throws \Exception
29
     */
30
    public function foo(A\B $b, \DOMDocument $d, $f)
31
    {
32
        /** @var \Exception $e */
33
        $e = new \Exception('ups!');
34
        throw $e;
35
    }
36
37
    /**
38
     * returns some awesome \DOMDocument
39
     *
40
     * @throws \BarFail\FooException
41
     */
42
    public function bar()
43
    {
44
        /** @var A\Be $g */
45
        $g = new A\Be();
46
        throw new \BarFail\FooException();
47
    }
48
49
    /**
50
     * foo
51
     *
52
     * @param \Closure $c
53
     *
54
     * @return void
55
     */
56
    public function myClosureFoo(\Closure $c)
57
    {
58
    }
59
}
60