<?php strrpos(string $haystack, string $needle, int $offset = 0): int|false
<?php public static function factoryForModel(string $modelName, int $count = 1): Factory { $factoryModelName = substr($modelName, strrpos($modelName, '\\') + 1); $factoryName = __NAMESPACE__.'\\'.$factoryModelName.'Factory';