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

OfxMovement::getDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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