1 | <?php |
||
7 | class TimeToRead |
||
8 | { |
||
9 | /** @var Settings */ |
||
10 | private $settings = null; |
||
11 | |||
12 | /** |
||
13 | * TimeToRead constructor |
||
14 | * |
||
15 | * @param Settings $settings |
||
16 | */ |
||
17 | public function __construct(Settings $settings) |
||
21 | |||
22 | /** |
||
23 | * @return TimeToRead |
||
24 | */ |
||
25 | public static function get() |
||
29 | |||
30 | /** |
||
31 | * @param string $text |
||
32 | * @param array $options |
||
33 | * |
||
34 | * @return int |
||
35 | */ |
||
36 | public function calculate(string $text, array $options = []): int |
||
60 | } |