BaseComplexType::getAttributes()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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