public function getNamespace(string $prefix = null)
	{
		if ($prefix === null)
		{
			return $this->prefixes;
		}

		return $this->prefixes[trim($prefix, '\\')] ?? [];
	}
public function getNamespace(string $prefix = null)
	{
		if ($prefix === null)
		{
			return $this->prefixes;
		}

		return $this->prefixes[trim($prefix, '\\')] ?? [];
	}
public function getNamespace ( string $ prefix = null ) { if ( $ prefix === null ) { return $ this -> prefixes ; } return $ this -> prefixes [ trim ( $ prefix , '\\' ) ] ?? [ ] ; }
Get namespaces with prefixes as keys and paths as values.

If a prefix param is set, returns only paths to the given prefix.

@var string|null $prefix

@return array
Get namespaces with prefixes as keys and paths as values .