get_called_class

Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8
The "Late Static Binding" class name
get_called_class(): string
    public static function factory($count null$state = [])

    {

        
$factory = static::newFactory() ?: Factory::factoryForModel(get_called_class());



        return 
$factory

                    
->count(is_numeric($count) ? $count null)