| Total Complexity | 3 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 60 |