$collection
$collection : \PhpZip\Model\Extra\ZipExtraField[]
The map of Extra Fields.
Maps from Header ID to Extra Field. Must not be null, but may be empty if no Extra Fields are used. The map is sorted by Header IDs in ascending order.
Represents a collection of Extra Fields as they may be present at several locations in ZIP files.
$collection : \PhpZip\Model\Extra\ZipExtraField[]
The map of Extra Fields.
Maps from Header ID to Extra Field. Must not be null, but may be empty if no Extra Fields are used. The map is sorted by Header IDs in ascending order.
get(int $headerId) : \PhpZip\Model\Extra\ZipExtraField|null
Returns the Extra Field with the given Header ID or null if no such Extra Field exists.
int | $headerId | the requested Header ID |
the Extra Field with the given Header ID or if no such Extra Field exists
add(\PhpZip\Model\Extra\ZipExtraField $extraField) : \PhpZip\Model\Extra\ZipExtraField
Stores the given Extra Field in this collection.
\PhpZip\Model\Extra\ZipExtraField | $extraField | the Extra Field to store in this collection |
the Extra Field previously associated with the Header ID of of the given Extra Field or null if no such Extra Field existed