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

StrategyAwareTrait::setStrategy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 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
}