Total Complexity | 4 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class DefaultReference implements ReferenceInterface { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $class; |
||
19 | |||
20 | /** |
||
21 | * Construct a new instance of the {@link Reference} class. |
||
22 | * |
||
23 | * @param string $class The name of the reference. |
||
24 | */ |
||
25 | 25 | public function __construct($class) { |
|
26 | 25 | $this->setClass($class); |
|
27 | 25 | } |
|
28 | |||
29 | /** |
||
30 | * Get the name of the reference. |
||
31 | * |
||
32 | * @return string Returns the name of the reference. |
||
33 | */ |
||
34 | 10 | public function getClass() { |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * Set the name of the reference. |
||
40 | * |
||
41 | * @param string $class The name of the reference. |
||
42 | */ |
||
43 | 25 | public function setClass($class) { |
|
45 | 25 | } |
|
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 15 | public function resolve(Container $container, $_ = null) { |
|
52 | } |
||
53 | } |
||
54 |