ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Public Member Functions | |||
__construct (bool $withImages) | |||
ReadingTime constructor. More... | |||
transform ($from) | |||
Perform the transformation.Please use this for transformations. It's more performant than calling invoke.
| |||
![]() | |||
applyTo (Result $data) | |||
Perform the transformation and reify possible failures. More... | |||
__invoke ($from) | |||
Transformations should be callable. More... | |||
Private Member Functions | |
calculateWordsForImages (int $numberOfImages) | |
Private Attributes | |
$wordsPerMinute = 275 | |
$firstImageReadingTimeInSeconds = 12 | |
$withImages = false | |
Definition at line 10 of file EstimatedReadingTime.php.
ILIAS\Refinery\String\EstimatedReadingTime::__construct | ( | bool | $withImages | ) |
ReadingTime constructor.
bool | $withImages |
Definition at line 28 of file EstimatedReadingTime.php.
References ILIAS\Refinery\String\EstimatedReadingTime\$withImages.
|
private |
int | $numberOfImages |
Definition at line 98 of file EstimatedReadingTime.php.
References $i.
Referenced by ILIAS\Refinery\String\EstimatedReadingTime\transform().
ILIAS\Refinery\String\EstimatedReadingTime::transform | ( | $from | ) |
Perform the transformation.Please use this for transformations. It's more performant than calling invoke.
Implements ILIAS\Refinery\Transformation.
Definition at line 36 of file EstimatedReadingTime.php.
References ILIAS\Refinery\String\EstimatedReadingTime\calculateWordsForImages().
|
private |
Definition at line 19 of file EstimatedReadingTime.php.
|
private |
Definition at line 22 of file EstimatedReadingTime.php.
Referenced by ILIAS\Refinery\String\EstimatedReadingTime\__construct().
|
private |
Definition at line 16 of file EstimatedReadingTime.php.