1 | <?php |
||
21 | class ContentFactory |
||
22 | { |
||
23 | /** |
||
24 | * @const string |
||
25 | */ |
||
26 | const EXT_TXT = 'txt'; |
||
27 | |||
28 | /** |
||
29 | * @const string |
||
30 | */ |
||
31 | const EXT_JSON = 'json'; |
||
32 | |||
33 | /** |
||
34 | * Create a ContentInterface based on the extension and string content |
||
35 | * @param string $extension |
||
36 | * @param string $content |
||
37 | * @return \NeedleProject\FileIo\Content\ContentInterface |
||
38 | */ |
||
39 | 4 | public function create(string $extension, string $content): ContentInterface |
|
57 | } |
||
58 |
This check looks
TODO
comments that have been left in the code.``TODO``s show that something is left unfinished and should be attended to.