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;
    }