private function renderObjects($withNamespace)
    {
        $code = array();
        foreach ($this->getObjects() as $object) {
            $originalUses = $object->getUses();
            $object->setUses(array());
            if ($withNamespace === false) {
                $originalNamespace = $object->getNamespace();
                $object->setNamespace(null);
                $code[] = $object->generate();
                $object->setNamespace($originalNamespace);
            } else {
                $code[] = $object->generate();
            }

            $object->setUses($originalUses);
            $code[] = null;
        }

        return $code;
    }
private function renderObjects($withNamespace)
    {
        $code = array();
        foreach ($this->getObjects() as $object) {
            $originalUses = $object->getUses();
            $object->setUses(array());
            if ($withNamespace === false) {
                $originalNamespace = $object->getNamespace();
                $object->setNamespace(null);
                $code[] = $object->generate();
                $object->setNamespace($originalNamespace);
            } else {
                $code[] = $object->generate();
            }

            $object->setUses($originalUses);
            $code[] = null;
        }

        return $code;
    }
private function renderObjects ( $ withNamespace ) { $ code = array ( ) ; foreach ( $ this -> getObjects ( ) as $ object ) { $ originalUses = $ object -> getUses ( ) ; $ object -> setUses ( array ( ) ) ; if ( $ withNamespace === false ) { $ originalNamespace = $ object -> getNamespace ( ) ; $ object -> setNamespace ( null ) ; $ code [ ] = $ object -> generate ( ) ; $ object -> setNamespace ( $ originalNamespace ) ; } else { $ code [ ] = $ object -> generate ( ) ; } $ object -> setUses ( $ originalUses ) ; $ code [ ] = null ; } return $ code ; }
Render all the objects.

@param boolean $withNamespace Flag if the objects should also be rendered with the namespace.
@return array
Render all the objects .