Documentation

PluginGraylist
in package

Table of Contents

$isWhitelist  : bool
$plugins  : array<string|int, string>
__construct()  : mixed
fromArray()  : PluginGraylist
getPlugins()  : array<string|int, string>
isAllowed()  : bool
Returns whether the given name is permitted by this graylist.
isWhitelist()  : bool
toArray()  : array<string|int, mixed>

Properties

Methods

__construct()

public __construct([array<string|int, string> $plugins = [] ][, bool $whitelist = false ]) : mixed
Parameters
$plugins : array<string|int, string> = []
$whitelist : bool = false
Return values
mixed

getPlugins()

public getPlugins() : array<string|int, string>
Return values
array<string|int, string>

isAllowed()

Returns whether the given name is permitted by this graylist.

public isAllowed(string $name) : bool
Parameters
$name : string
Return values
bool

isWhitelist()

public isWhitelist() : bool
Return values
bool

toArray()

public toArray() : array<string|int, mixed>
Tags
phpstan-return

array<string, mixed>

Return values
array<string|int, mixed>

Search results