Completed
Push — master ( 4b1c9c...cf6085 )
by SignpostMarv
04:26
created

ElementRef::getMin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace GoetasWebservices\XML\XSDReader\Schema\Element;
4
5
class ElementRef extends AbstractElementSingle
6
{
7
    /**
8
     * @var ElementDef
9
     */
10
    protected $wrapped;
11
12 47
    public function __construct(ElementDef $element)
13
    {
14 47
        parent::__construct($element->getSchema(), $element->getName());
15 47
        $this->wrapped = $element;
16 47
    }
17
18
    /**
19
     * @return ElementDef
20
     */
21
    public function getReferencedElement()
22
    {
23
        return $this->wrapped;
24
    }
25
26
    /**
27
     * @return \GoetasWebservices\XML\XSDReader\Schema\Type\Type|null
28
     */
29
    public function getType()
30
    {
31
        return $this->wrapped->getType();
32
    }
33
}
34