PHPArg   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 91.67%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 0
dl 0
loc 64
ccs 22
cts 24
cp 0.9167
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getDoc() 0 4 1
A setDoc() 0 5 1
A getType() 0 4 1
A setType() 0 5 1
A getName() 0 4 1
A setName() 0 5 1
A getDefault() 0 4 1
A setDefault() 0 5 1
1
<?php
2
namespace GoetasWebservices\Xsd\XsdToPhp\Php\Structure;
3
4
class PHPArg
5
{
6
7
    protected $doc;
8
9
    protected $type;
10
11
    protected $name;
12
13
    protected $default;
14
15 30
    public function __construct($name = null, $type = null)
16
    {
17 30
        $this->name = $name;
18 30
        $this->type = $type;
19 30
    }
20
21 8
    public function getDoc()
22
    {
23 8
        return $this->doc;
24
    }
25
26 19
    public function setDoc($doc)
27
    {
28 19
        $this->doc = $doc;
29 19
        return $this;
30
    }
31
32
    /**
33
     * @return PHPClass
34
     */
35 14
    public function getType()
36
    {
37 14
        return $this->type;
38
    }
39
40 30
    public function setType(PHPClass $type)
41
    {
42 30
        $this->type = $type;
43 30
        return $this;
44
    }
45
46 30
    public function getName()
47
    {
48 30
        return $this->name;
49
    }
50
51 19
    public function setName($name)
52
    {
53 19
        $this->name = $name;
54 19
        return $this;
55
    }
56
57
    public function getDefault()
58
    {
59
        return $this->default;
60
    }
61
62 8
    public function setDefault($default)
63
    {
64 8
        $this->default = $default;
65 8
        return $this;
66
    }
67
}
68