PHPClassOf   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 75%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 33
ccs 6
cts 8
cp 0.75
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A __toString() 0 4 1
A getArg() 0 4 1
1
<?php
2
namespace Goetas\Xsd\XsdToPhp\Php\Structure;
3
4
class PHPClassOf extends PHPClass
5
{
6
7
    /**
8
     * @var PHPArg
9
     */
10
    protected $arg;
11
12
    /**
13
     * @param PHPArg $arg
14
     */
15 9
    public function __construct(PHPArg $arg)
16
    {
17 9
        $this->arg = $arg;
18 9
        $this->name = 'array';
19 9
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function __toString()
25
    {
26
        return "array of " . $this->arg;
27
    }
28
29
    /**
30
     * @return PHPArg
31
     */
32 6
    public function getArg()
33
    {
34 6
        return $this->arg;
35
    }
36
}
37
38