Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2018-08-21 18:39:12 +0300
committerPhie <phie@phie.ovh>2018-08-21 18:39:12 +0300
commit7d24cc0120859fc4e46b301c08effc97ddfbb1bb (patch)
tree94b5b52074022ceccd4c91073f217feaec38ca40 /vendor/nelexa/zip/src/PhpZip/Model/Entry/OutputOffsetEntry.php
first commit for Carnet NC server
Diffstat (limited to 'vendor/nelexa/zip/src/PhpZip/Model/Entry/OutputOffsetEntry.php')
-rw-r--r--vendor/nelexa/zip/src/PhpZip/Model/Entry/OutputOffsetEntry.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/vendor/nelexa/zip/src/PhpZip/Model/Entry/OutputOffsetEntry.php b/vendor/nelexa/zip/src/PhpZip/Model/Entry/OutputOffsetEntry.php
new file mode 100644
index 0000000..94bd15b
--- /dev/null
+++ b/vendor/nelexa/zip/src/PhpZip/Model/Entry/OutputOffsetEntry.php
@@ -0,0 +1,49 @@
+<?php
+
+namespace PhpZip\Model\Entry;
+
+use PhpZip\Model\ZipEntry;
+
+/**
+ * Entry to write to the central directory.
+ *
+ * @author Ne-Lexa alexey@nelexa.ru
+ * @license MIT
+ */
+class OutputOffsetEntry
+{
+ /**
+ * @var int
+ */
+ private $offset;
+ /**
+ * @var ZipEntry
+ */
+ private $entry;
+
+ /**
+ * @param int $pos
+ * @param ZipEntry $entry
+ */
+ public function __construct($pos, ZipEntry $entry)
+ {
+ $this->offset = $pos;
+ $this->entry = $entry;
+ }
+
+ /**
+ * @return int
+ */
+ public function getOffset()
+ {
+ return $this->offset;
+ }
+
+ /**
+ * @return ZipEntry
+ */
+ public function getEntry()
+ {
+ return $this->entry;
+ }
+}