Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | namespace Apie\CountWords\Strategies; |
| 3 | |
| 4 | interface WordCounterInterface |
| 5 | { |
| 6 | public static function isSupported(?string $fileExtension, ?string $mimeType): bool; |
| 7 | /** |
| 8 | * @param array<string, int> $counts |
| 9 | * @return array<string, int> |
| 10 | */ |
| 11 | public static function countFromFile(string $path, array $counts = []): array; |
| 12 | /** |
| 13 | * @param resource $resource |
| 14 | * @param array<string, int> $counts |
| 15 | * @return array<string, int> |
| 16 | */ |
| 17 | public static function countFromResource(mixed $resource, array $counts = []): array; |
| 18 | |
| 19 | /** |
| 20 | * @param array<string, int> $counts |
| 21 | * @return array<string, int> |
| 22 | */ |
| 23 | public static function countFromString(string $text, array $counts = []): array; |
| 24 | } |