public function addBundle(Bundle $bundle)
    {
        foreach ($bundle as $resource) {
            if (is_string($resource)) {
                $this->addFile($resource);
            } else {
                $this->buildFromIterator($resource);
            }
        }
    }
public function addBundle(Bundle $bundle)
    {
        foreach ($bundle as $resource) {
            if (is_string($resource)) {
                $this->addFile($resource);
            } else {
                $this->buildFromIterator($resource);
            }
        }
    }
public function addBundle ( Bundle $ bundle ) { foreach ( $ bundle as $ resource ) { if ( is_string ( $ resource ) ) { $ this -> addFile ( $ resource ) ; } else { $ this -> buildFromIterator ( $ resource ) ; } } }
adds given list of resources to phar

@param  Bundle  $bundle
adds given list of resources to phar