PHP Class PDepend\Input\ExtensionFilter

Inheritance: implements PDepend\Input\Filter
Datei anzeigen Open project: pdepend/pdepend Class Usage Examples

Protected Properties

Property Type Description
$extensions array(string) Whitelist of accepted file extensions.

Public Methods

Method Description
__construct ( array $extensions ) Constructs a new file extension filter instance with the given list of allowed file $extensions.
accept ( string $relative, string $absolute ) : boolean Returns true if this filter accepts the given paths.

Method Details

__construct() public method

Constructs a new file extension filter instance with the given list of allowed file $extensions.
public __construct ( array $extensions )
$extensions array List of allowed extension.

accept() public method

Returns true if this filter accepts the given paths.
public accept ( string $relative, string $absolute ) : boolean
$relative string The relative path to the specified root.
$absolute string The absolute path to a source file.
return boolean

Property Details

$extensions protected_oe property

Whitelist of accepted file extensions.
protected array(string) $extensions
return array(string)