public function getSource()
    {
        $ret = '<?php' . PHP_EOL . PHP_EOL;

        if (count($this->namespaces) > 0) {
            $ret .= 'namespace ' . $this->namespaces[0] . ';' . PHP_EOL . PHP_EOL;
        }

        if (count($this->classes) > 0) {
            foreach ($this->classes as $class) {
                $ret .= $class->getSource();
            }
        }

        if (count($this->functions) > 0) {
            foreach ($this->functions as $function) {
                $ret .= $function->getSource();
            }
        }

        return $ret;
    }
public function getSource()
    {
        $ret = '<?php' . PHP_EOL . PHP_EOL;

        if (count($this->namespaces) > 0) {
            $ret .= 'namespace ' . $this->namespaces[0] . ';' . PHP_EOL . PHP_EOL;
        }

        if (count($this->classes) > 0) {
            foreach ($this->classes as $class) {
                $ret .= $class->getSource();
            }
        }

        if (count($this->functions) > 0) {
            foreach ($this->functions as $function) {
                $ret .= $function->getSource();
            }
        }

        return $ret;
    }
public function getSource ( ) { $ ret = '<?php' . PHP_EOL . PHP_EOL ; if ( count ( $ this -> namespaces ) > 0 ) { $ ret .= 'namespace ' . $ this -> namespaces [ 0 ] . ';' . PHP_EOL . PHP_EOL ; } if ( count ( $ this -> classes ) > 0 ) { foreach ( $ this -> classes as $ class ) { $ ret .= $ class -> getSource ( ) ; } } if ( count ( $ this -> functions ) > 0 ) { foreach ( $ this -> functions as $ function ) { $ ret .= $ function -> getSource ( ) ; } } return $ ret ; }
Generates the complete source code for the file

@return string The source code for the file
Generates the complete source code for the file