Пример #1
0
 /**
  * @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());
     }
 }
Пример #2
0
 /**
  * @return string
  */
 public function getName()
 {
     if ($name = parent::getName()) {
         return $name;
     }
     return $this->getPharFileInfo()->getFileName();
 }