public function getBundleName(): ?string
    {
        if ($this->getBundleNamespace() === static::NO_BUNDLE_NAMESPACE) {
            return null;
        }
        if (strpos('\\', $this->getBundleNamespace()) !== false) {
            $parts = explode('\\', $this->getBundleNamespace());
            return array_pop($parts);
        }
        return $this->getBundleNamespace();
    }
public function getBundleName(): ?string
    {
        if ($this->getBundleNamespace() === static::NO_BUNDLE_NAMESPACE) {
            return null;
        }
        if (strpos('\\', $this->getBundleNamespace()) !== false) {
            $parts = explode('\\', $this->getBundleNamespace());
            return array_pop($parts);
        }
        return $this->getBundleNamespace();
    }
public function getBundleName ( ) : ? string { if ( $ this -> getBundleNamespace ( ) === static :: NO_BUNDLE_NAMESPACE ) { return null ; } if ( strpos ( '\\' , $ this -> getBundleNamespace ( ) ) !== false ) { $ parts = explode ( '\\' , $ this -> getBundleNamespace ( ) ) ; return array_pop ( $ parts ) ; } return $ this -> getBundleNamespace ( ) ; }
Gets bundle name by retrieving the last part of the bundleNamespace
@return string
Gets bundle name by retrieving the last part of the bundleNamespace