diff options
Diffstat (limited to 'vendor/nelexa/zip/src/PhpZip/Extra/ExtraField.php')
-rw-r--r-- | vendor/nelexa/zip/src/PhpZip/Extra/ExtraField.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/nelexa/zip/src/PhpZip/Extra/ExtraField.php b/vendor/nelexa/zip/src/PhpZip/Extra/ExtraField.php new file mode 100644 index 0000000..cbf18bd --- /dev/null +++ b/vendor/nelexa/zip/src/PhpZip/Extra/ExtraField.php @@ -0,0 +1,35 @@ +<?php + +namespace PhpZip\Extra; + +/** + * Extra Field in a Local or Central Header of a ZIP archive. + * It defines the common properties of all Extra Fields and how to + * serialize/deserialize them to/from byte arrays. + * + * @author Ne-Lexa alexey@nelexa.ru + * @license MIT + */ +interface ExtraField +{ + /** + * Returns the Header ID (type) of this Extra Field. + * The Header ID is an unsigned short integer (two bytes) + * which must be constant during the life cycle of this object. + * + * @return int + */ + public static function getHeaderId(); + + /** + * Serializes a Data Block. + * @return string + */ + public function serialize(); + + /** + * Initializes this Extra Field by deserializing a Data Block. + * @param string $data + */ + public function deserialize($data); +} |