1 | <?php |
||
8 | class LoaderCollection |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private $loaders; |
||
14 | |||
15 | /** |
||
16 | * Get a loader. |
||
17 | * |
||
18 | * @param $alias |
||
19 | * @return LoaderInterface |
||
20 | */ |
||
21 | public function get($alias) |
||
29 | |||
30 | /** |
||
31 | * Test if a loader exists. |
||
32 | * |
||
33 | * @param $alias |
||
34 | * @return bool |
||
35 | */ |
||
36 | public function has($alias) |
||
40 | |||
41 | /** |
||
42 | * Add a new loader. |
||
43 | * |
||
44 | * @param $alias |
||
45 | * @param LoaderInterface $loader |
||
46 | */ |
||
47 | public function add($alias, LoaderInterface $loader) |
||
55 | } |