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 array|null |
||
20 | */ |
||
21 | public function get($alias) |
||
25 | |||
26 | /** |
||
27 | * Test if a loader exists. |
||
28 | * |
||
29 | * @param $alias |
||
30 | * @return bool |
||
31 | */ |
||
32 | public function has($alias) |
||
36 | |||
37 | /** |
||
38 | * Add a new loader. |
||
39 | * |
||
40 | * @param $alias |
||
41 | * @param LoaderInterface $loader |
||
42 | */ |
||
43 | public function add($alias, LoaderInterface $loader) |
||
51 | } |