Skip to content

Commit

Permalink
Adding docblocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeet committed Jul 13, 2016
1 parent 3116df8 commit d76ccb0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unzipper.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
$timeend = microtime(TRUE);
$time = $timeend - $timestart;

/**
* Class Unzipper
*/
class Unzipper {
public $localdir = '.';
public $zipfiles = array();
Expand Down Expand Up @@ -65,6 +68,12 @@ public function __construct() {
}
}

/**
* Checks file extension and calls suitable extractor functions.
*
* @param $archive
* @param $destination
*/
public static function extract($archive, $destination) {
$ext = pathinfo($archive, PATHINFO_EXTENSION);
if ($ext === 'zip') {
Expand Down

0 comments on commit d76ccb0

Please sign in to comment.