Total Complexity | 5 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class DocumentFactory |
||
14 | { |
||
15 | public static function makeFromPath(string $fileName, string $filePath): Document |
||
16 | { |
||
17 | return new Document($fileName, new LazyOpenStream($filePath, 'r')); |
||
18 | } |
||
19 | |||
20 | public static function makeFromStream(string $fileName, StreamInterface $fileStream): Document |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @throws FilesystemException |
||
27 | */ |
||
28 | public static function makeFromString(string $fileName, string $string): Document |
||
42 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.