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