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

StrategyAwareTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setStrategy() 0 3 1
A getStrategy() 0 3 1
1
<?php
2
3
namespace Softius\ResourcesResolver;
4
5
/**
6
 * Class StrategyAwareTrait
7
 * @package Softius\ResourcesResolver
8
 */
9
trait StrategyAwareTrait {
10
    /**
11
     * @var ResolvableInterface
12
     */
13
    private $strategy;
14
15
    /**
16
     * @param ResolvableInterface $strategy
17
     */
18
    public function setStrategy(ResolvableInterface $strategy) {
19
        $this->strategy = $strategy;
20
    }
21
22
    /**
23
     * @return mixed
24
     */
25
    public function getStrategy() {
26
        return $this->strategy;
27
    }
28
}