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

Foo   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 43
rs 10
c 0
b 0
f 0
wmc 3
1
<?php
2
3
/**
4
 * test case
5
 */
6
namespace BarPass;
7
8
use A\B;
9
use \DOMDocument as D;
10
use Exception;
11
use \DOMComment;
12
use Closure as MyClosure;
13
14
/**
15
 * Class Foo
16
 */
17
class Foo extends DOMComment
18
{
19
    private $a = D::TEST;
20
21
    /**
22
     * method foo
23
     *
24
     * @param B $b b
25
     * @param D $d d
26
     * @param D|int|B $f f
27
     *
28
     * @throws Exception
29
     */
30
    public function foo(B $b, D $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
     * @see \DOMDocument
41
     *
42
     * @return D
43
     */
44
    public function bar()
45
    {
46
        /** @var A\Be $g */
47
        $g = new A\Be();
48
        return new D();
49
    }
50
51
    /**
52
     * foo
53
     *
54
     * @param MyClosure $c
55
     *
56
     * @return void
57
     */
58
    public function myClosureFoo(MyClosure $c)
59
    {
60
    }
61
}
62