Completed
Push — master ( da8fcc...d64df6 )
by Asmir
02:56
created

BaseComplexType::getAttributes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace GoetasWebservices\XML\XSDReader\Schema\Type;
3
4
use GoetasWebservices\XML\XSDReader\Schema\Inheritance\Extension;
5
use GoetasWebservices\XML\XSDReader\Schema\Inheritance\Restriction;
6
use GoetasWebservices\XML\XSDReader\Schema\Attribute\AttributeItem;
7
use GoetasWebservices\XML\XSDReader\Schema\Attribute\AttributeContainer;
8
9
abstract class BaseComplexType extends Type implements AttributeContainer
10
{
11
12
    protected $attributes = array();
13
14 39
    public function addAttribute(AttributeItem $attribute)
15
    {
16 39
        $this->attributes[] = $attribute;
17 39
    }
18
19
20 5
    public function getAttributes()
21
    {
22 5
        return $this->attributes;
23
    }
24
}
25