PHP Класс PDepend\Input\ExtensionFilter

Наследование: implements PDepend\Input\Filter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$extensions array(string) Whitelist of accepted file extensions.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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() публичный метод

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.
Результат boolean

Описание свойств

$extensions защищенное свойство

Whitelist of accepted file extensions.
protected array(string) $extensions
Результат array(string)