public function append(PuliResource $resource) { if (!isset($this->versions[$resource->getPath()])) { $this->versions[$resource->getPath()] = array(); } $this->versions[$resource->getPath()][] = $resource; }