Test Failed
Push — master ( 31f356...780ea5 )
by Alexey
02:13
created

UseStatements::add()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Reflection\ClassUseStatements;
6
7
use \ArrayObject;
8
9
/**
10
 * Class UseStatements
11
 * @package UsesReflection
12
 */
13
class UseStatements extends ArrayObject {
14
15
    /**
16
     * @param UseStatement $useStatement
17
     * @return UseStatements
18
     */
19 1
    public function add(UseStatement $useStatement): UseStatements {
20 1
        $this->append($useStatement);
21
22 1
        return $this;
23
    }
24
25
    /**
26
     * @param string $class
27
     * @return string|null
28
     */
29
    public function getFullClassName(string $class): ?string {
0 ignored issues
show
Unused Code introduced by
The parameter $class is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
30
        return null;
31
    }
32
33
}