ResultTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 21
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A hydrateResult() 0 4 1
A getResult() 0 4 1
1
<?php
2
3
namespace Loevgaard\AltaPay\Entity;
4
5
trait ResultTrait
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $result;
11
12
13 15
    public function hydrateResult(\SimpleXMLElement $xml)
14
    {
15 15
        $this->result = (string)$xml->Result;
16 15
    }
17
18
    /**
19
     * @return string
20
     */
21 9
    public function getResult() : string
22
    {
23 9
        return $this->result;
24
    }
25
}
26