/** * @param \Blar\Archive\PharEntry $entry */ public function addEntry(Entry $entry) { $this->getHandle()->addFromString($entry->getName(), $entry->getContent()); $item = $this->getHandle()->offsetGet($entry->getName()); if ($entry->hasMetaData()) { $item->setMetaData($entry->getMetaData()); } }
/** * @return string */ public function getName() { if ($name = parent::getName()) { return $name; } return $this->getPharFileInfo()->getFileName(); }