Completed
Push — master ( b0d047...e9f17a )
by Adelar
03:30
created

OfxMovement   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 60%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
ccs 3
cts 5
cp 0.6
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getDescription() 0 3 1
1
<?php
2
namespace Adelarcubs\OFXParser;
3
4
use SimpleXMLElement;
5
/**
6
 *
7
 * @author Adelar Tiemann Junior <[email protected]>
8
 */
9
class OfxMovement
10
{
11
12
    private $description;
13
14 4
    public function __construct(SimpleXMLElement $xml)
15
    {
16 4
        $this->description = $xml->MEMO;
0 ignored issues
show
Bug introduced by
The property MEMO does not seem to exist in SimpleXMLElement.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
17 4
    }
18
19
    public function getDescription(){
20
    	return $this->description;
21
    }
22
}
23