Completed
Pull Request — master (#12)
by Jakub
03:54
created

AutowiredMethodTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setBar() 0 4 1
1
<?php
2
namespace Skrz\Bundle\AutowiringBundle\Tests\DependencyInjection\Compiler\AutowiringCompilerPassSource;
3
4
use Skrz\Bundle\AutowiringBundle\Annotation\Autowired;
5
use Skrz\Bundle\AutowiringBundle\Tests\DependencyInjection\Compiler\AutowiringCompilerPassSource\Foo\Bar;
6
7
trait AutowiredMethodTrait
8
{
9
10
	/**
11
	 * @param Bar $bar
12
	 *
13
	 * @Autowired
14
	 */
15
	public function setBar($bar)
0 ignored issues
show
Unused Code introduced by
The parameter $bar 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...
16
	{
17
18
	}
19
20
}
21