|
@@ -49,10 +49,12 @@ final class UnrecognizedExtraField implements ZipExtraField
|
|
|
/**
|
|
|
* Populate data from this array as if it was in local file data.
|
|
|
*
|
|
|
- * @param string $buffer the buffer to read data from
|
|
|
- * @param ?ZipEntry $entry
|
|
|
+ * @param string $buffer the buffer to read data from
|
|
|
+ * @param ZipEntry|null $entry optional zip entry
|
|
|
+ *
|
|
|
+ * @return UnrecognizedExtraField
|
|
|
*/
|
|
|
- public static function unpackLocalFileData(string $buffer, ?ZipEntry $entry = null): ZipExtraField
|
|
|
+ public static function unpackLocalFileData(string $buffer, ?ZipEntry $entry = null): self
|
|
|
{
|
|
|
throw new RuntimeException('Unsupport parse');
|
|
|
}
|
|
@@ -60,10 +62,12 @@ final class UnrecognizedExtraField implements ZipExtraField
|
|
|
/**
|
|
|
* Populate data from this array as if it was in central directory data.
|
|
|
*
|
|
|
- * @param string $buffer the buffer to read data from
|
|
|
- * @param ?ZipEntry $entry
|
|
|
+ * @param string $buffer the buffer to read data from
|
|
|
+ * @param ZipEntry|null $entry optional zip entry
|
|
|
+ *
|
|
|
+ * @return UnrecognizedExtraField
|
|
|
*/
|
|
|
- public static function unpackCentralDirData(string $buffer, ?ZipEntry $entry = null): ZipExtraField
|
|
|
+ public static function unpackCentralDirData(string $buffer, ?ZipEntry $entry = null): self
|
|
|
{
|
|
|
throw new RuntimeException('Unsupport parse');
|
|
|
}
|