Test Failed
Push — master ( 097a15...b8f91e )
by Martin
01:33
created

Service::getArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace KingsonDe\Marshal\Example\Model;
6
7
class Service {
8
9
    /**
10
     * @var string
11
     */
12
    private $id;
13
14
    /**
15
     * @var string
16
     */
17
    private $class;
18
19
    /**
20
     * @var Service[]
21
     */
22
    private $arguments;
23
24
    public function __construct(string $id, string $class = '', Service ...$arguments) {
25
        $this->id        = $id;
26
        $this->class     = $class;
27
        $this->arguments = $arguments;
28
    }
29
30
    public function getId(): string {
31
        return $this->id;
32
    }
33
34
    public function getClass(): string {
35
        return $this->class;
36
    }
37
38
    /**
39
     * @return Service[]
40
     */
41
    public function getArguments(): array {
42
        return $this->arguments;
43
    }
44
}
45