| 1 | <?php |
||
| 14 | class SingleInstanceContainer implements InteropContainerInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var InteropContainerInterface |
||
| 18 | */ |
||
| 19 | private $wrapped; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var mixed[] |
||
| 23 | */ |
||
| 24 | private $instances = []; |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * @param InteropContainerInterface $container |
||
| 29 | */ |
||
| 30 | public function __construct(InteropContainerInterface $container) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritdoc |
||
| 37 | */ |
||
| 38 | public function get($id) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritdoc |
||
| 49 | */ |
||
| 50 | public function has($id) |
||
| 54 | } |
||
| 55 |