Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/Archive/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,12 @@ public function extract($to = null, $overwrite = false)

return new \SplFileInfo(sprintf('%s%s', rtrim(null === $to ? getcwd() : $to, '/'), $this->location));
}

/**
* @inheritdoc
* */
public function getResource()
{
return $this->resource;
}
}
10 changes: 9 additions & 1 deletion src/Archive/MemberInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Alchemy\Zippy\Archive;

use Alchemy\Zippy\Adapter\Resource\ResourceInterface;
use Alchemy\Zippy\Exception\InvalidArgumentException;
use Alchemy\Zippy\Exception\RuntimeException;

Expand Down Expand Up @@ -62,7 +63,14 @@ public function getSize();
* @throws InvalidArgumentException In case no members could be removed or provide extract target directory is not valid
*/
public function extract($to = null, $overwrite = false);


/**
* Get resource.
*
* @return ResourceInterface
* */
public function getResource();

/**
* @inheritdoc
*/
Expand Down