Returns current class name

@return string
198677
private function getClassName()
    {
        if (null === $this->className) {
            $this->className = get_class($this);
        }

        return $this->className;
    }
1442
public function getName()
    {
        if ($this->_name === null) {
            $this->_name = ((new \ReflectionClass($this))->getShortName());
        }
        
        return $this->_name;
    }
878093
public function getName()
    {
        //generate snake case name based on class name
        preg_match('/\\\?(\w+)Filter$/', get_class($this), $matches);

        return ltrim(strtolower(strval(preg_replace('/[A-Z]/', '_$0', $matches[1]))), '_');
    }
1268975
public function getCssClass()
    {
        $class = self::CLASS_DEFAULT;

        if ($this->userView) {
            if ($this->new_post_at > $this->userView->new_last_seen) {
                $class = self::CLASS_NEW;
            } elseif ($this->edited_post_at > $this->userView->edited_last_seen) {
                $class = self::CLASS_EDITED;
            }
        } else {
            $class = self::CLASS_NEW;
        }
        return $class;
    }
557475
public function getName()
    {
        $fqdnClassName = get_class($this);
        $className = substr($fqdnClassName, strrpos($fqdnClassName, '\\') + 1);
        return str_replace("Service", "", $className);
    }
261270
public function getExtendedClassName()
    {
        if ($this->getExtendedClass() === null) {
            return '';
        }

        $name = str_replace('%', ' ', $this->getExtendedClass());
        $name = str_replace('.', ' ', $name);
        $name = str_replace(':', ' pseudo-class-', $name);
        return trim($name);
    }
1304764
protected function getCurrentClass()
	{
		$classUri = tao_helpers_Uri::decode($this->getRequestParameter('classUri'));
		if ($this->isStandAlone() && (is_null($classUri) || empty($classUri))) {
			return $this->getRootClass();
		} else {
			return parent::getCurrentClass();
		}
	}
1229667
private function getCurrentClassName(Context $context)
    {
        $class = null;
        /** @var PropertyMetadata $metadata */
        if (null !== ($metadata = $context->getMetadataStack()->top())) {
            if ($metadata->class) {
                $class = $metadata->class;
            }
        }

        return $class;
    }
366973
public function getClassName()
    {
        $name = str_replace('.', ' ', $this->name);
        $name = str_replace(':', ' pseudo-class-', $name);
        return trim($name);
    }
975115
public function getClassName()
    {
        if ($this->isMethod() || $this->isInvokedObject()) {
            $callable = $this->explodeCallable();
            if ($this->isInstanceMethod() || $this->isInvokedObject()) {
                return get_class($callable[0]);
            }
            return $callable[0];
        }
        return '';
    }
470595
public function getName(): string
    {
        // Check cache.
        if (null === $this->name) {
            $tokens = $this->getTokenStream();
            // Find class token
            try {
                $loc = $tokens->scan(0, [T_CLASS, T_TRAIT]);
            } catch (\OutOfBoundsException $e) {
                throw new ClassDefinitionNotFoundException('No class is found inside ' . $this->filename . '.', 0, $e);
            }

            // Get the following token
            if ($loc !== null) {
                $loc = $tokens->next($loc);
            }

            // Make sure it is not :: but a name
            if ($loc !== null && $tokens->type($loc) === T_STRING) {
                // Read the name from the token
                $this->name           = $tokens->value($loc);
                $this->class_location = $loc;
            } else {
                // Mark the name as NOT found (in contrast to not initialized)
                $this->name = false;
            }
        }

        // Return the name if a class was found or throw an exception.
        if ($this->name) {
            return $this->name;
        }

        throw new ClassDefinitionNotFoundException('No class is found inside ' . $this->filename . '.');
    }
978180
public function getClass(): string
    {
        if ($this->property->getClass() !== null) {
            return $this->property->getClass()->getName();
        }

        return '';
    }
20301
private function classes(): string
    {
        $classes = 'alert';

        if ($this->bg_color !== null) {
            $classes .= ' alert-' . $this->bg_color;
        }

        if ($this->text_color !== null) {
            $classes .= ' text-' . $this->text_color;
        }

        return $classes;
    }
855930
protected function getChildName()
    {
        if ($this->childname === null) {
            $classname = get_class($this);
            $pos = max(strrpos($classname, '_Array'), strrpos($classname, '\ArrayObject'));
            $this->childname = substr($classname, 0, $pos);
        }
        return $this->childname;
    }
176562
public function _getName()
    {
        $moduleName = '\\' . get_class($this);

        if (strpos($moduleName, ModuleContainer::MODULE_NAMESPACE) === 0) {
            return substr($moduleName, strlen(ModuleContainer::MODULE_NAMESPACE));
        }

        return $moduleName;
    }
44363
private function getLoggingClassName()
    {
        $backtrace = $this->getBacktrace();

        $name = Plugin::getPluginNameFromBacktrace($backtrace);

        // if we can't determine the plugin, use the name of the calling class
        if ($name == false) {
            $name = $this->getClassNameThatIsLogging($backtrace);
        }

        return $name;
    }
942986
public function getCurrentName()
    {
        switch ($this->current) {
            case self::CURRENT_OTHER:
                $currentName = Yii::t('yuncms', 'Other');
                break;
            case self::CURRENT_WORK:
                $currentName = Yii::t('yuncms', 'Work');
                break;
            case self::CURRENT_FREELANCE:
                $currentName = Yii::t('yuncms', 'Freelance');
                break;
            case self::CURRENT_START:
                $currentName = Yii::t('yuncms', 'Start');
                break;
            case self::CURRENT_OUTSOURCE:
                $currentName = Yii::t('yuncms', 'Outsource');
                break;
            case self::CURRENT_JOB:
                $currentName = Yii::t('yuncms', 'Job');
                break;
            case self::CURRENT_STUDENT:
                $currentName = Yii::t('yuncms', 'Student');
                break;
            default:
                throw new \RuntimeException('Your database is not supported!');
        }
        return $currentName;
    }