Skip to content

Commit d76ccb0

Browse files
committed
Adding docblocks.
1 parent 3116df8 commit d76ccb0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

unzipper.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
$timeend = microtime(TRUE);
1919
$time = $timeend - $timestart;
2020

21+
/**
22+
* Class Unzipper
23+
*/
2124
class Unzipper {
2225
public $localdir = '.';
2326
public $zipfiles = array();
@@ -65,6 +68,12 @@ public function __construct() {
6568
}
6669
}
6770

71+
/**
72+
* Checks file extension and calls suitable extractor functions.
73+
*
74+
* @param $archive
75+
* @param $destination
76+
*/
6877
public static function extract($archive, $destination) {
6978
$ext = pathinfo($archive, PATHINFO_EXTENSION);
7079
if ($ext === 'zip') {

0 commit comments

Comments
 (0)