Passed
Pull Request — master (#24)
by Wanderson
06:44
created

InjectableTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A instance() 0 3 1
1
<?php
2
3
namespace Win\Common;
4
5
/**
6
 * Comportamento injetável
7
 */
8
trait InjectableTrait
9
{
10
11
	/**
12
	 * Cria instância da classe via DI
13
	 * @return static
14
	 */
15
	public static function instance()
16
	{
17
		return DI::instance(get_called_class());
18
	}
19
}
20