public function generateBody()
    {
        if (count($this->body) === 0) {
            return '{' . $this->getLineFeed() . $this->getIndentation() . '}';
        } else {
            $code = array();
            $code[] = '{';
            foreach ($this->body as $line) {
                $line->addIndentationLevel($this->getIndentationLevel() + 1);
                $line->setIndentationString($this->getIndentationString());
                $code[] = rtrim($line->generate());
            }

            $code[] = $this->getIndentation() . '}';

            return implode($this->getLineFeed(), $code);
        }
    }