Use get_called_class() instead of __CLASS__ as the latter returns parent