\PhpZip\ModelZipEntryMatcher

Summary

Methods
Properties
Constants
__construct()
add()
match()
all()
invoke()
getMatches()
delete()
setPassword()
setEncryptionMethod()
disableEncryption()
count()
No public properties found
No constants found
No protected methods found
$zipContainer
$matches
N/A
No private methods found
No private properties found
N/A

Properties

$zipContainer

$zipContainer : \PhpZip\Model\ZipContainer

Type

ZipContainer

$matches

$matches : array

Type

array

Methods

__construct()

__construct(\PhpZip\Model\ZipContainer  $zipContainer) : mixed

ZipEntryMatcher constructor.

Parameters

\PhpZip\Model\ZipContainer $zipContainer

Returns

mixed —

add()

add(string|\PhpZip\Model\ZipEntry|string[]|\PhpZip\Model\ZipEntry[]  $entries) : \PhpZip\Model\ZipEntryMatcher

Parameters

string|\PhpZip\Model\ZipEntry|string[]|\PhpZip\Model\ZipEntry[] $entries

Returns

\PhpZip\Model\ZipEntryMatcher —

match()

match(string  $regexp) : \PhpZip\Model\ZipEntryMatcher

Parameters

string $regexp

Returns

\PhpZip\Model\ZipEntryMatcher —

all()

all() : \PhpZip\Model\ZipEntryMatcher

Returns

\PhpZip\Model\ZipEntryMatcher —

invoke()

invoke(callable  $callable) : mixed

Callable function for all select entries.

Callable function signature: function(string $entryName)}

Parameters

callable $callable

Returns

mixed —

getMatches()

getMatches() : array

Returns

array —

delete()

delete() : mixed

Returns

mixed —

setPassword()

setPassword(string|null  $password, int|null  $encryptionMethod = null) : mixed

Parameters

string|null $password
int|null $encryptionMethod

Returns

mixed —

setEncryptionMethod()

setEncryptionMethod(int  $encryptionMethod) : mixed

Parameters

int $encryptionMethod

Returns

mixed —

disableEncryption()

disableEncryption() : mixed

Returns

mixed —

count()

count() : int

Count elements of an object.

Returns

int —

the custom count as an integer