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

Result::appendOrt()   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 Result
9
 * @package Dgame\Soap\Test\Object
10
 */
11
final class Result extends Hydratable
12
{
13
    /**
14
     * @var Ort[]
15
     */
16
    private $orte = [];
17
18
    /**
19
     * @param Ort $ort
20
     */
21
    public function appendOrt(Ort $ort)
22
    {
23
        $this->orte[] = $ort;
24
    }
25
26
    /**
27
     * @return Ort[]
28
     */
29
    public function getOrte(): array
30
    {
31
        return $this->orte;
32
    }
33
}