| Total Complexity | 4 | 
| Total Lines | 21 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 5 | class MockDI implements \Psr\Container\ContainerInterface  | 
            ||
| 6 | { | 
            ||
| 7 | private $services;  | 
            ||
| 8 | |||
| 9 | public function get($id)  | 
            ||
| 10 |     { | 
            ||
| 11 |         if (\array_key_exists($id, $this->services)) { | 
            ||
| 12 | return $this->services[$id];  | 
            ||
| 13 |         } else { | 
            ||
| 14 | return null;  | 
            ||
| 15 | }  | 
            ||
| 16 | }  | 
            ||
| 17 | |||
| 18 | public function set(string $name, $service)  | 
            ||
| 19 |     { | 
            ||
| 20 | $this->services[$name] = $service;  | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 23 | public function has($id)  | 
            ||
| 26 | }  | 
            ||
| 27 | }  | 
            ||
| 28 |