Completed
Pull Request — master (#14)
by Yann
02:46
created

ReturnInformation::getCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Genkgo\Camt\Camt053\DTO;
4
5
/**
6
 * Class ReturnInformation
7
 * @package Genkgo\Camt\Camt053
8
 */
9
class ReturnInformation
10
{
11
    /**
12
     * @var string
13
     */
14
    private $code;
15
    private $additionalInformation;
16
17
    /**
18
     * @return string
19
     */
20
    public function getCode()
21
    {
22
        return $this->code;
23
    }
24
25
    /**
26
     * @return string
27
     */
28
    public function getAdditionalInformation()
29
    {
30
        return $this->additionalInformation;
31
    }
32
33
    /**
34
     * @param $code
35
     * @param $additionalInformation
36
     *
37
     * @return static
38
     */
39
    public static function fromUnstructured($code, $additionalInformation)
40
    {
41
        $information = new static;
42
        $information->code = $code;
43
        $information->additionalInformation = $additionalInformation;
44
        return $information;
45
    }
46
}
47