| Total Lines | 26 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 28 | public function get()  | 
            ||
| 29 |     { | 
            ||
| 30 | $set = $this->ip->getParameter()->getAttributes(Set::class)[0];  | 
            ||
| 31 | $instance = $set->newInstance();  | 
            ||
| 32 | assert($instance instanceof Set);  | 
            ||
| 33 | |||
| 34 | return new class ($this->injector, $instance) implements ProviderInterface  | 
            ||
| 35 |         { | 
            ||
| 36 | /** @var InjectorInterface */  | 
            ||
| 37 | private $injector;  | 
            ||
| 38 | |||
| 39 | /** @var Set */  | 
            ||
| 40 | private $set;  | 
            ||
| 41 | |||
| 42 | public function __construct(InjectorInterface $injector, Set $set)  | 
            ||
| 43 |             { | 
            ||
| 44 | $this->injector = $injector;  | 
            ||
| 45 | $this->set = $set;  | 
            ||
| 46 | }  | 
            ||
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * @return mixed  | 
            ||
| 50 | */  | 
            ||
| 51 | public function get()  | 
            ||
| 52 |             { | 
            ||
| 53 | return $this->injector->getInstance($this->set->interface, $this->set->name);  | 
            ||
| 54 | }  | 
            ||
| 58 |