FileFilter
-
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>
$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
= []
$inclusive
protected
bool
$inclusive
$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
= []
__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
-
allowsClass()
public
allowsClass(string $fq_classlike_name) : bool
Parameters
-
$fq_classlike_name
: string
-
allowsClassConstant()
public
allowsClassConstant(string $constant_id) : bool
Parameters
-
$constant_id
: string
-
allowsMethod()
public
allowsMethod(string $method_id) : bool
Parameters
-
$method_id
: string
-
allowsProperty()
public
allowsProperty(string $property_id) : bool
Parameters
-
$property_id
: string
-
allowsVariable()
public
allowsVariable(string $var_name) : bool
Parameters
-
$var_name
: string
-
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
-
loadFromXMLElement()
public
static loadFromXMLElement(SimpleXMLElement $e, string $base_dir, bool $inclusive) : static
Parameters
-
$e
: SimpleXMLElement
-
-
$base_dir
: string
-
-
$inclusive
: bool
-
slashify()
protected
static slashify(string $str) : string
Parameters
-
$str
: string
-
-
psalm-pure
-
isRegularExpression()
private
static isRegularExpression(string $string) : bool
Parameters
-
$string
: string
-
-
psalm-assert-if-true
-
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
-
-
mutation-free
-
Return values
array<string|int, string|false>