Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
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 |
public __construct ( stdClass $info, Netresearch\Composer\Patches\PatchSet $patchSet ) | ||
$info | stdClass | |
$patchSet | Netresearch\Composer\Patches\PatchSet |
protected getActionFiles ( string $action ) : array | ||
$action | string | '-' or '+' |
return | array |
public getFileAdditions ( ) : type | ||
return | type |
public getFileDeletions ( ) : array | ||
return | array |
protected whichPatchCmd ( ) : string | ||
return | string |
protected string $content | ||
return | string |
protected array $fileAdditions | ||
return | array |
protected array $fileDeletions | ||
return | array |
protected stdClass $info | ||
return | stdClass |