16 lines
313 B
Plaintext
16 lines
313 B
Plaintext
|
<?php
|
||
|
|
||
|
namespace Psr\Container;
|
||
|
|
||
|
interface ContainerInterface
|
||
|
{
|
||
|
/**
|
||
|
* Finds an entry of the container by its identifier and returns it.
|
||
|
*
|
||
|
* @template T
|
||
|
* @param class-string<T> $id Identifier of the entry to look for.
|
||
|
* @return T Entry.
|
||
|
*/
|
||
|
public function get(string $id);
|
||
|
}
|