Passed
Branch master (7a0b0e)
by Randy
02:56
created

Ort::setName()   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 1
1
<?php
2
3
namespace Dgame\Soap\Test\Object;
4
5
use Dgame\Soap\Hydrator\Hydratable;
6
7
/**
8
 * Class Ort
9
 * @package Dgame\Soap\Test\Object
10
 */
11
final class Ort extends Hydratable
12
{
13
    /**
14
     * @var string
15
     */
16
    private $name;
17
    /**
18
     * @var OrtsTeil[]
19
     */
20
    private $ortsteile = [];
21
22
    /**
23
     * @return string
24
     */
25
    public function getName(): string
26
    {
27
        return $this->name;
28
    }
29
30
    /**
31
     * @param string $name
32
     */
33
    public function setName(string $name)
34
    {
35
        $this->name = $name;
36
    }
37
38
    /**
39
     * @return OrtsTeil[]
40
     */
41
    public function getOrtsteile(): array
42
    {
43
        return $this->ortsteile;
44
    }
45
46
    /**
47
     * @param OrtsTeil $ortsteil
48
     */
49
    public function appendOrtsTeil(OrtsTeil $ortsteil)
50
    {
51
        $this->ortsteile[] = $ortsteil;
52
    }
53
}