ClassWithMethodWithVariadicFunction::foo()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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