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

Ort   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 43
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getOrtsteile() 0 4 1
A appendOrtsTeil() 0 4 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
}