PHP Class PhpBrew\PatchKit\Patch

The patch rules targets some files and replaces some contents with their own implementation.
Exibir arquivo Open project: phpbrew/phpbrew

Public Methods

Method Description
apply ( PhpBrew\Buildable $build, CLIFramework\Logger $logger ) Each patch may implement its own logic to patch the file.
desc ( ) : string
match ( PhpBrew\Buildable $build, CLIFramework\Logger $logger )
rules ( ) : array rules method returns the array of PatchRule class.

Method Details

apply() public method

Each patch may implement its own logic to patch the file.
public apply ( PhpBrew\Buildable $build, CLIFramework\Logger $logger )
$build PhpBrew\Buildable
$logger CLIFramework\Logger

desc() abstract public method

abstract public desc ( ) : string
return string the description for the patch.

match() abstract public method

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

rules() abstract public method

rules method returns the array of PatchRule class.
abstract public rules ( ) : array
return array