__construct()   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 a constructor with variadic arguments
9
 *
10
 * @author Marco Pivetta <[email protected]>
11
 * @license MIT
12
 */
13
class ClassWithVariadicConstructorArgument
14
{
15
    /**
16
     * @var mixed
17
     */
18
    private $foo;
19
20
    /**
21
     * @var array
22
     */
23
    private $bar;
24
25
    /**
26
     * ClassWithVariadicConstructorArguments constructor.
27
     *
28
     * @param mixed $foo
29
     * @param array ...$bar
30
     */
31
    public function __construct($foo, ... $bar)
32
    {
33
        $this->foo = $foo;
34
        $this->bar = $bar;
35
    }
36
}
37