public function getTemplatePath($namespace = null)
    {
        if (null !== $namespace && ! is_string($namespace)) {
            throw new Exception\InvalidNamespaceException('Namespace must be a string');
        }

        $namespace = $namespace ?: self::DEFAULT_NAMESPACE;

        if (! array_key_exists($namespace, $this->paths)) {
            $this->paths[$namespace] = new SplStack;
        }

        return $this->paths[$namespace];
    }
public function getTemplatePath($namespace = null)
    {
        if (null !== $namespace && ! is_string($namespace)) {
            throw new Exception\InvalidNamespaceException('Namespace must be a string');
        }

        $namespace = $namespace ?: self::DEFAULT_NAMESPACE;

        if (! array_key_exists($namespace, $this->paths)) {
            $this->paths[$namespace] = new SplStack;
        }

        return $this->paths[$namespace];
    }
public function getTemplatePath ( $ namespace = null ) { if ( null !== $ namespace && ! is_string ( $ namespace ) ) { throw new Exception \ InvalidNamespaceException ( 'Namespace must be a string' ) ; } $ namespace = $ namespace ? : self :: DEFAULT_NAMESPACE ; if ( ! array_key_exists ( $ namespace , $ this -> paths ) ) { $ this -> paths [ $ namespace ] = new SplStack ; } return $ this -> paths [ $ namespace ] ; }
Get value for templatePath

@param null|string $namespace Defaults to DEFAULT_NAMESPACE when null
@return SplStack
@throws Exception\InvalidNamespaceException for invalid namespace values.
Get value for templatePath