(PHP 5 >= 5.3.0, PHP 7)
get_called_class — The "Late Static Binding" class name
get_called_class ( ) : string
Gets the name of the class the static method is called in.
Returns the class name. Returns false
if called from outside a class.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.get-called-class.php