code: public static function getClassNameWithoutNamespace($object)
      {
          $className = get_class($object);
          if (preg_match('@\\\\([\w]+)$@', $className, $matches)) {
              $className = $matches[1];
          }
  
          return $className;
      }
docs: Gets a class name without a namespace.
  
  @param object $object An object.
  
  @return string