src/mako/application/Package.php
public function getClassNamespace(bool $prefix = false): string
	{
		if($this->classNamespace === null)
		{
			$this->classNamespace = substr(static::class, 0, strrpos(static::class, '\\'));
		}

		return $prefix ? '\\' . $this->classNamespace : $this->classNamespace;
	}
public function getClassNamespace(bool $prefix = false): string
	{
		if($this->classNamespace === null)
		{
			$this->classNamespace = substr(static::class, 0, strrpos(static::class, '\\'));
		}

		return $prefix ? '\\' . $this->classNamespace : $this->classNamespace;
	}
public function getClassNamespace ( bool $ prefix = false ) : string { if ( $ this -> classNamespace === null ) { $ this -> classNamespace = substr ( static :: class , 0 , strrpos ( static :: class , '\\' ) ) ; } return $ prefix ? '\\' . $ this -> classNamespace : $ this -> classNamespace ; }
Returns the class namespace.

@param  bool   $prefix Prefix the namespace with a slash?
@return string
Returns the class namespace .