Completed
Push — master ( baef0b...706633 )
by Randy
02:37
created

TestOrt::getOrtsteile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Dgame\Soap\Test\Object;
4
5
/**
6
 * Class TestOrt
7
 * @package Dgame\Soap\Test\Object
8
 */
9
final class TestOrt
10
{
11
    /**
12
     * @var string
13
     */
14
    private $name;
15
    /**
16
     * @var TestOrtsTeil[]
17
     */
18
    private $ortsteile = [];
19
20
    /**
21
     * @return string
22
     */
23
    public function getName(): string
24
    {
25
        return $this->name;
26
    }
27
28
    /**
29
     * @param string $name
30
     */
31
    public function setName(string $name)
32
    {
33
        $this->name = $name;
34
    }
35
36
    /**
37
     * @return TestOrtsTeil[]
38
     */
39
    public function getOrtsteile(): array
40
    {
41
        return $this->ortsteile;
42
    }
43
44
    /**
45
     * @param TestOrtsTeil $ortsteil
46
     */
47
    public function appendTestOrtsTeil(TestOrtsTeil $ortsteil)
48
    {
49
        $this->ortsteile[] = $ortsteil;
50
    }
51
}