class Member implements MemberInterface
Represents a member of an archive.
Methods
__construct(ResourceInterface $resource, AdapterInterface $adapter, String $location, Integer $fileSize, DateTime $lastModifiedDate, Boolean $isDir)
Constructor |
||
String | getLocation() | |
Boolean | isDir() | |
getLastModifiedDate() | ||
Integer | getSize() | |
__toString() | ||
SplFileInfo |
extract(String|null $to = null)
Extract the member from its archive |
Details
at line 74
public
__construct(ResourceInterface $resource, AdapterInterface $adapter, String $location, Integer $fileSize, DateTime $lastModifiedDate, Boolean $isDir)
Constructor
at line 87
public String
getLocation()
at line 95
public Boolean
isDir()
at line 103
public
getLastModifiedDate()
at line 111
public Integer
getSize()
at line 119
public
__toString()
at line 127
public SplFileInfo
extract(String|null $to = null)
Extract the member from its archive
Be carefull using this method within a loop
This will execute one extraction process for each file
Prefer the use of ArchiveInterface::extractMembers in that use case