PHP 클래스 TQ\Vcs\FileSystem

파일 보기 프로젝트 열기: teqneers/php-stream-wrapper-for-git 1 사용 예제들

공개 메소드들

메소드 설명
bubble ( string $path, Closure $comparator ) : string | null Bubbles up a path until $comparator returns true
normalizeDirectorySeparator ( string $path ) : string Normalizes the directory separator to /

메소드 상세

bubble() 공개 정적인 메소드

Bubbles up a path until $comparator returns true
public static bubble ( string $path, Closure $comparator ) : string | null
$path string The path
$comparator Closure The callback used inside when bubbling to determine a finding
리턴 string | null The path that is found or NULL otherwise

normalizeDirectorySeparator() 공개 정적인 메소드

Normalizes the directory separator to /
public static normalizeDirectorySeparator ( string $path ) : string
$path string The path
리턴 string The normalized path