ClassWithMethodWithVariadicFunction   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 32
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A foo() 0 5 1
A buz() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace ProxyManagerTestAsset;
6
7
/**
8
 * Test asset class with method with variadic parameter
9
 *
10
 * @author Jefersson Nathan <[email protected]>
11
 * @license MIT
12
 */
13
class ClassWithMethodWithVariadicFunction
14
{
15
    /**
16
     * @var mixed
17
     */
18
    public $bar;
19
20
    /**
21
     * @var mixed
22
     */
23
    public $baz;
24
25
    /**
26
     * @param mixed $bar
27
     * @param mixed $baz
28
     */
29
    public function foo($bar, ...$baz)
30
    {
31
        $this->bar = $bar;
32
        $this->baz = $baz;
33
    }
34
35
    /**
36
     * @param mixed ...$fooz
37
     *
38
     * @return mixed[]
39
     */
40
    public function buz(...$fooz)
41
    {
42
        return $fooz;
43
    }
44
}
45