| 1 | <?php  | 
            ||
| 5 | trait StrategyAwareTrait  | 
            ||
| 6 | { | 
            ||
| 7 | /**  | 
            ||
| 8 | * @var \League\Route\Strategy\StrategyInterface  | 
            ||
| 9 | */  | 
            ||
| 10 | protected $strategy;  | 
            ||
| 11 | |||
| 12 | /**  | 
            ||
| 13 | * Set the strategy.  | 
            ||
| 14 | *  | 
            ||
| 15 | * @param \League\Route\Strategy\StrategyInterface $strategy  | 
            ||
| 16 | *  | 
            ||
| 17 | * @return $this  | 
            ||
| 18 | */  | 
            ||
| 19 | 39 | public function setStrategy(StrategyInterface $strategy)  | 
            |
| 20 |     { | 
            ||
| 21 | 39 | $this->strategy = $strategy;  | 
            |
| 22 | |||
| 23 | 39 | return $this;  | 
            |
| 24 | }  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * Gets the strategy.  | 
            ||
| 28 | *  | 
            ||
| 29 | * @return \League\Route\Strategy\StrategyInterface  | 
            ||
| 30 | */  | 
            ||
| 31 | 39 | public function getStrategy()  | 
            |
| 35 | }  | 
            ||
| 36 |