| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 24 | trait ResolveTrait |
||
| 25 | { |
||
| 26 | use ReferenceTrait; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * delegator for object lookup |
||
| 30 | * |
||
| 31 | * @var ContainerInterface |
||
| 32 | */ |
||
| 33 | protected $delegator; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Object lookup with delegator by its 'name' |
||
| 37 | * |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | protected function getReference(string $name) |
||
| 41 | { |
||
| 42 | return $this->delegator->get($name); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param ContainerInterface $delegator |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | protected function setDelegator(?ContainerInterface $delegator = NULL) |
||
| 53 | } |
||
| 54 | } |