public function getSource()
    {
        $description = '';
        if (strlen($this->description) > 0) {
            $preDescription = trim($this->description);
            $lines = explode(PHP_EOL, $preDescription);
            foreach ($lines as $line) {
                $description .= ' ' . trim('* ' . $line) . PHP_EOL;
            }
        }

        $tags = '';
        if (count($this->params) > 0) {
            foreach ($this->params as $param) {
                $tags .= $param->getSource();
            }
        }
        if (count($this->throws) > 0) {
            foreach ($this->throws as $throws) {
                $tags .= $throws->getSource();
            }
        }
        if ($this->var != null) {
            $tags .= $this->var->getSource();
        }
        if ($this->package != null) {
            $tags .= $this->package->getSource();
        }
        if ($this->author != null) {
            $tags .= $this->author->getSource();
        }
        if ($this->access != null) {
            $tags .= $this->access->getSource();
        }
        if ($this->return != null) {
            $tags .= $this->return->getSource();
        }

        if (!empty($description) && !empty($tags)) {
            $description .= ' *' . PHP_EOL;
        }
        $ret = $description . $tags;

        if (!empty($ret)) {
            $ret = PHP_EOL . '/**' . PHP_EOL . $ret . ' */' . PHP_EOL;
        }

        return $ret;
    }
public function getSource()
    {
        $description = '';
        if (strlen($this->description) > 0) {
            $preDescription = trim($this->description);
            $lines = explode(PHP_EOL, $preDescription);
            foreach ($lines as $line) {
                $description .= ' ' . trim('* ' . $line) . PHP_EOL;
            }
        }

        $tags = '';
        if (count($this->params) > 0) {
            foreach ($this->params as $param) {
                $tags .= $param->getSource();
            }
        }
        if (count($this->throws) > 0) {
            foreach ($this->throws as $throws) {
                $tags .= $throws->getSource();
            }
        }
        if ($this->var != null) {
            $tags .= $this->var->getSource();
        }
        if ($this->package != null) {
            $tags .= $this->package->getSource();
        }
        if ($this->author != null) {
            $tags .= $this->author->getSource();
        }
        if ($this->access != null) {
            $tags .= $this->access->getSource();
        }
        if ($this->return != null) {
            $tags .= $this->return->getSource();
        }

        if (!empty($description) && !empty($tags)) {
            $description .= ' *' . PHP_EOL;
        }
        $ret = $description . $tags;

        if (!empty($ret)) {
            $ret = PHP_EOL . '/**' . PHP_EOL . $ret . ' */' . PHP_EOL;
        }

        return $ret;
    }
public function getSource ( ) { $ description = '' ; if ( strlen ( $ this -> description ) > 0 ) { $ preDescription = trim ( $ this -> description ) ; $ lines = explode ( PHP_EOL , $ preDescription ) ; foreach ( $ lines as $ line ) { $ description .= ' ' . trim ( '* ' . $ line ) . PHP_EOL ; } } $ tags = '' ; if ( count ( $ this -> params ) > 0 ) { foreach ( $ this -> params as $ param ) { $ tags .= $ param -> getSource ( ) ; } } if ( count ( $ this -> throws ) > 0 ) { foreach ( $ this -> throws as $ throws ) { $ tags .= $ throws -> getSource ( ) ; } } if ( $ this -> var != null ) { $ tags .= $ this -> var -> getSource ( ) ; } if ( $ this -> package != null ) { $ tags .= $ this -> package -> getSource ( ) ; } if ( $ this -> author != null ) { $ tags .= $ this -> author -> getSource ( ) ; } if ( $ this -> access != null ) { $ tags .= $ this -> access -> getSource ( ) ; } if ( $ this -> return != null ) { $ tags .= $ this -> return -> getSource ( ) ; } if ( ! empty ( $ description ) && ! empty ( $ tags ) ) { $ description .= ' *' . PHP_EOL ; } $ ret = $ description . $ tags ; if ( ! empty ( $ ret ) ) { $ ret = PHP_EOL . '/**' . PHP_EOL . $ ret . ' */' . PHP_EOL ; } return $ ret ; }
Returns the generated source

@return string The sourcecoude of the comment
@access public
Returns the generated source