src/ClassGeneration/NamespaceClass.php
public function toString()
    {
        if (!$this->getPath()) {
            return '';
        }

        $path = preg_replace('/^\\\/', '', $this->getPath());

        $namespace = $this->getDocBlock()->setTabulation($this->getTabulation())->toString()
            . $this->getTabulationFormatted()
            . 'namespace '
            . $path
            . ';' . PHP_EOL;

        return $namespace;
    }
public function toString()
    {
        if (!$this->getPath()) {
            return '';
        }

        $path = preg_replace('/^\\\/', '', $this->getPath());

        $namespace = $this->getDocBlock()->setTabulation($this->getTabulation())->toString()
            . $this->getTabulationFormatted()
            . 'namespace '
            . $path
            . ';' . PHP_EOL;

        return $namespace;
    }
public function toString ( ) { if ( ! $ this -> getPath ( ) ) { return '' ; } $ path = preg_replace ( '/^\\\/' , '' , $ this -> getPath ( ) ) ; $ namespace = $ this -> getDocBlock ( ) -> setTabulation ( $ this -> getTabulation ( ) ) -> toString ( ) . $ this -> getTabulationFormatted ( ) . 'namespace ' . $ path . ';' . PHP_EOL ; return $ namespace ; }
Parse the namespace string;
@return string
Parse the namespace string ;