Passed
Push — master ( 5dce54...909d6e )
by Paweł
12:04 queued 12s
created

ClassDefinition::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace pjpawel\LightApi\Container\Definition;
4
5
class ClassDefinition extends Definition
6
{
7
8
    public string $name;
9
    /**
10
     * @var string[]
11
     */
12
    public array $arguments;
13
14
    /**
15
     * @param string $name
16
     * @param string[] $arguments
17
     */
18
    public function __construct(string $name, array $arguments)
19
    {
20
        $this->name = $name;
21
        $this->arguments = $arguments;
22
    }
23
}