BaseComplexType   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Importance

Changes 7
Bugs 1 Features 0
Metric Value
wmc 2
c 7
b 1
f 0
cbo 1
dl 0
loc 16
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addAttribute() 0 4 1
A getAttributes() 0 4 1
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