Documentation

FileFilter
in package

Tags
psalm-consistent-constructor

Table of Contents

Properties

$class_constant_ids  : array<string|int, string>
$declare_strict_types  : array<string, bool>
$directories  : array<string|int, string>
$files  : array<string|int, string>
$files_lowercase  : array<string|int, string>
$fq_classlike_names  : array<string|int, string>
$fq_classlike_patterns  : array<string|int, non-empty-string>
$ignore_type_stats  : array<string, bool>
$inclusive  : bool
$method_ids  : array<string|int, non-empty-string>
$property_ids  : array<string|int, string>
$var_names  : array<string|int, string>

Methods

__construct()  : mixed
addDirectory()  : void
addFile()  : void
allows()  : bool
allowsClass()  : bool
allowsClassConstant()  : bool
allowsMethod()  : bool
allowsProperty()  : bool
allowsVariable()  : bool
getDirectories()  : array<string|int, string>
getFiles()  : array<string|int, string>
loadFromArray()  : static
loadFromXMLElement()  : static
slashify()  : string
isRegularExpression()  : bool
recursiveGlob()  : array<string|int, string|false>

Properties

$class_constant_ids

protected array<string|int, string> $class_constant_ids = []

$declare_strict_types

protected array<string, bool> $declare_strict_types = []

$directories

protected array<string|int, string> $directories = []

$files

protected array<string|int, string> $files = []

$files_lowercase

protected array<string|int, string> $files_lowercase = []

$fq_classlike_names

protected array<string|int, string> $fq_classlike_names = []

$fq_classlike_patterns

protected array<string|int, non-empty-string> $fq_classlike_patterns = []

$ignore_type_stats

protected array<string, bool> $ignore_type_stats = []

$method_ids

protected array<string|int, non-empty-string> $method_ids = []

$property_ids

protected array<string|int, string> $property_ids = []

$var_names

protected array<string|int, string> $var_names = []

Methods

__construct()

public __construct(bool $inclusive) : mixed
Parameters
$inclusive : bool

addDirectory()

public addDirectory(string $dir_name) : void
Parameters
$dir_name : string

addFile()

public addFile(string $file_name) : void
Parameters
$file_name : string

allows()

public allows(string $file_name[, bool $case_sensitive = false ]) : bool
Parameters
$file_name : string
$case_sensitive : bool = false
Return values
bool

allowsClass()

public allowsClass(string $fq_classlike_name) : bool
Parameters
$fq_classlike_name : string
Return values
bool

allowsClassConstant()

public allowsClassConstant(string $constant_id) : bool
Parameters
$constant_id : string
Return values
bool

allowsMethod()

public allowsMethod(string $method_id) : bool
Parameters
$method_id : string
Return values
bool

allowsProperty()

public allowsProperty(string $property_id) : bool
Parameters
$property_id : string
Return values
bool

allowsVariable()

public allowsVariable(string $var_name) : bool
Parameters
$var_name : string
Return values
bool

getDirectories()

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

getFiles()

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

loadFromArray()

public static loadFromArray(array<string|int, mixed> $config, string $base_dir, bool $inclusive) : static
Parameters
$config : array<string|int, mixed>
$base_dir : string
$inclusive : bool
Return values
static

loadFromXMLElement()

public static loadFromXMLElement(SimpleXMLElement $e, string $base_dir, bool $inclusive) : static
Parameters
$e : SimpleXMLElement
$base_dir : string
$inclusive : bool
Return values
static

slashify()

protected static slashify(string $str) : string
Parameters
$str : string
Tags
psalm-pure
Return values
string

isRegularExpression()

private static isRegularExpression(string $string) : bool
Parameters
$string : string
Tags
psalm-assert-if-true

non-empty-string $string

Return values
bool

recursiveGlob()

private static recursiveGlob(array<int, non-empty-string> $parts, bool $only_dir) : array<string|int, string|false>
Parameters
$parts : array<int, non-empty-string>
$only_dir : bool
Tags
mutation-free
Return values
array<string|int, string|false>

        
On this page

Search results