1 | <?php |
||
10 | class Factory |
||
11 | { |
||
12 | /** |
||
13 | * Guess file format based on extension |
||
14 | * |
||
15 | * @see https://github.com/github/markup |
||
16 | * |
||
17 | * @param \SplFileObject $file |
||
18 | * @return FormatInterface |
||
19 | * @throws RuntimeException If file extension is not supported |
||
20 | */ |
||
21 | public function createFormat(\SplFileObject $file) |
||
32 | } |
||
33 |