PHP 클래스 PDepend\Input\ExtensionFilter

상속: implements PDepend\Input\Filter
파일 보기 프로젝트 열기: pdepend/pdepend 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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)