PHP 클래스 PhpBrew\PatchKit\RegExpPatchRule

상속: implements PhpBrew\PatchKit\PatchRule
파일 보기 프로젝트 열기: phpbrew/phpbrew 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $files )
allOf ( array $patterns ) This method build up the predicator.
always ( )
anyOf ( array $patterns )
apply ( PhpBrew\Buildable $build, CLIFramework\Logger $logger )
backup ( PhpBrew\Buildable $build, CLIFramework\Logger $logger )
files ( $files )
replaces ( $pattern, $replacement )

보호된 메소드들

메소드 설명
applyLines ( array $lines, &$patched )
applyTextContent ( string $content, &$patched ) This method can only be used for text format files.
backupFile ( $path )

메소드 상세

__construct() 공개 메소드

public __construct ( array $files )
$files array

allOf() 공개 메소드

This method build up the predicator.
public allOf ( array $patterns )
$patterns array

always() 공개 메소드

public always ( )

anyOf() 공개 메소드

public anyOf ( array $patterns )
$patterns array

apply() 공개 메소드

public apply ( PhpBrew\Buildable $build, CLIFramework\Logger $logger )
$build PhpBrew\Buildable
$logger CLIFramework\Logger

applyLines() 보호된 메소드

protected applyLines ( array $lines, &$patched )
$lines array

applyTextContent() 보호된 메소드

This method can only be used for text format files.
protected applyTextContent ( string $content, &$patched )
$content string the target of the text content.

backup() 공개 메소드

public backup ( PhpBrew\Buildable $build, CLIFramework\Logger $logger )
$build PhpBrew\Buildable
$logger CLIFramework\Logger

backupFile() 보호된 메소드

protected backupFile ( $path )

files() 공개 정적인 메소드

public static files ( $files )

replaces() 공개 메소드

public replaces ( $pattern, $replacement )