aboutsummaryrefslogtreecommitdiff
path: root/src/ZipStream.php
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-02 14:25:06 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-03 09:54:41 -0400
commitf9611cd0d2551ae706ace520d6d2a6f3513499e8 (patch)
treede58211a416a57e1ac0f0b336c1a3f3cac948665 /src/ZipStream.php
parenta1157c8354fa11ad5feea87e0d0652452a7ea7b3 (diff)
downloadzipstream-php-f9611cd0d2551ae706ace520d6d2a6f3513499e8.tar.bz2
zipstream-php-f9611cd0d2551ae706ace520d6d2a6f3513499e8.zip
documentation updates, fix composer.json
Diffstat (limited to 'src/ZipStream.php')
-rw-r--r--src/ZipStream.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ZipStream.php b/src/ZipStream.php
index b3f41dd..b545bab 100644
--- a/src/ZipStream.php
+++ b/src/ZipStream.php
@@ -1,7 +1,7 @@
<?php
declare(strict_types = 1);
/**
- * Streamed, dynamically generated zip archives.
+ * Dynamically generate streamed zip archives.
*
* @author Paul Duncan <pabs@pablotron.org>
* @copyright 2007-2018 Paul Duncan <pabs@pablotron.org>
@@ -1090,7 +1090,7 @@ final class Entry {
};
/**
- * Dynamically generate streamed zip file.
+ * Dynamically generate streamed zip archives.
*
* @api
*
@@ -1149,7 +1149,10 @@ final class ZipStream {
*/
public function __construct(string $name, array $args = []) {
try {
+ # set state
$this->state = self::STREAM_STATE_INIT;
+
+ # set name and args
$this->name = $name;
$this->args = array_merge(self::$ARCHIVE_DEFAULTS, [
'time' => time(),