This question already has an answer here:
I want to get the child class name, in parent class constructor. The classes are namespaced so if I use get_class(); function, it will retrieve the entire namespace and I need only the class name of a child.
The parent class is a abstract class if that's matter.
</div>
The fully qualified classname with namespace, is really the 'correct' class. If you only want the last bit, you should simply substring.
$class = substr(get_class($this), strrpos(get_class($this),'\\')+1);
Alternatively you can use reflection
$refl = new \ReflectionObject($this);
$class = $refl->getShortName();
Try the get_called_class()
function from PHP