PHP 클래스 Netresearch\Composer\Patches\Patch

파일 보기 프로젝트 열기: netresearch/composer-patches-plugin 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$checksum
$content string The content of the patch file
$fileAdditions array File additions inside the patch
$fileDeletions array File deletions/replacements inside the patch
$info stdClass Info object created by {@see PatchSet::process()}
$patchSet Netresearch\Composer\Patches\PatchSet

공개 메소드들

메소드 설명
__construct ( stdClass $info, Netresearch\Composer\Patches\PatchSet $patchSet ) Construct with $info from {@see PatchSet::process()}
__get ( string $name ) : string | mixed Get a info property
__isset ( string $name ) : string Check if a info property is set
apply ( string $toPath, boolean $dryRun = FALSE ) Apply the patch
getChecksum ( ) : string
getFileAdditions ( ) : type Get the files, added by this patch
getFileDeletions ( ) : array Get the files, deleted (or replaced) by this patch
revert ( string $toPath, boolean $dryRun = FALSE ) Revert the patch

보호된 메소드들

메소드 설명
executeProcess ( string $command, string $cwd, string $stdin, string &$stdout, string &$stderr = NULL ) : integer Process execution wrapper adapted from
getActionFiles ( string $action ) : array Find the file additions/deletions within the patch file
read ( ) : string Read in the patch
runCommand ( string $toPath, boolean $revert = FALSE, boolean $dryRun = FALSE ) Run the patch command
whichPatchCmd ( ) : string Locate the patch executable

메소드 상세

__construct() 공개 메소드

Construct with $info from {@see PatchSet::process()}
public __construct ( stdClass $info, Netresearch\Composer\Patches\PatchSet $patchSet )
$info stdClass
$patchSet Netresearch\Composer\Patches\PatchSet

__get() 공개 메소드

Get a info property
public __get ( string $name ) : string | mixed
$name string
리턴 string | mixed

__isset() 공개 메소드

Check if a info property is set
public __isset ( string $name ) : string
$name string
리턴 string

apply() 공개 메소드

Apply the patch
public apply ( string $toPath, boolean $dryRun = FALSE )
$toPath string
$dryRun boolean

executeProcess() 보호된 메소드

Process execution wrapper adapted from
protected executeProcess ( string $command, string $cwd, string $stdin, string &$stdout, string &$stderr = NULL ) : integer
$command string
$cwd string
$stdin string
$stdout string
$stderr string
리턴 integer

getActionFiles() 보호된 메소드

Find the file additions/deletions within the patch file
protected getActionFiles ( string $action ) : array
$action string '-' or '+'
리턴 array

getChecksum() 공개 메소드

public getChecksum ( ) : string
리턴 string

getFileAdditions() 공개 메소드

Get the files, added by this patch
public getFileAdditions ( ) : type
리턴 type

getFileDeletions() 공개 메소드

Get the files, deleted (or replaced) by this patch
public getFileDeletions ( ) : array
리턴 array

read() 보호된 메소드

Read in the patch
protected read ( ) : string
리턴 string

revert() 공개 메소드

Revert the patch
public revert ( string $toPath, boolean $dryRun = FALSE )
$toPath string
$dryRun boolean

runCommand() 보호된 메소드

Run the patch command
protected runCommand ( string $toPath, boolean $revert = FALSE, boolean $dryRun = FALSE )
$toPath string
$revert boolean
$dryRun boolean

whichPatchCmd() 보호된 메소드

Locate the patch executable
protected whichPatchCmd ( ) : string
리턴 string

프로퍼티 상세

$checksum 보호되어 있는 프로퍼티

protected $checksum

$content 보호되어 있는 프로퍼티

The content of the patch file
protected string $content
리턴 string

$fileAdditions 보호되어 있는 프로퍼티

File additions inside the patch
protected array $fileAdditions
리턴 array

$fileDeletions 보호되어 있는 프로퍼티

File deletions/replacements inside the patch
protected array $fileDeletions
리턴 array

$info 보호되어 있는 프로퍼티

Info object created by {@see PatchSet::process()}
protected stdClass $info
리턴 stdClass

$patchSet 보호되어 있는 프로퍼티

protected PatchSet,Netresearch\Composer\Patches $patchSet
리턴 Netresearch\Composer\Patches\PatchSet