Completed
Push — master ( f1d159...267fa8 )
by Iacovos
12:51
created

CallableResolver   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 2
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A resolve() 0 3 1
1
<?php
2
3
namespace Softius\ResourcesResolver;
4
5
/**
6
 * Class CallableResolver
7
 * @package Softius\ResourcesResolver
8
 */
9
class CallableResolver implements StrategyAwareInterface
10
{
11
	use StrategyAwareTrait;
12
13
	/**
14
	 * CallableResolver constructor.
15
     */
16
	public function __construct()
17
	{
18
		$this->setStrategy(new DefaultCallableStrategy());
19
	}
20
21
	/**
22
	 * @param string $in
23
	 * @return mixed
24
     */
25
	public function resolve($in) {
26
        return $this->getStrategy()->resolve($in);
27
	}
28
}