PHP Class Mutagenesis\Utility\Runkit

Mostrar archivo Open project: padraic/mutagenesis Class Usage Examples

Protected Properties

Property Type Description
$_methodPreserveCode string Method signature hash appended to a replaced method's name so it can be reinstated later without any need to separately store entire method related code blocks.

Public Methods

Method Description
applyMutation ( array $mutation ) Apply a mutation to the relevant file
getMethodFlags ( array $mutation ) : integer Get the appropriate ext/runkit method flag value to use during a replacement via the runkit methods
reverseMutation ( array $mutation ) Reverse a previously applied mutation to the given file

Method Details

applyMutation() public method

Apply a mutation to the relevant file
public applyMutation ( array $mutation )
$mutation array

getMethodFlags() public method

Get the appropriate ext/runkit method flag value to use during a replacement via the runkit methods
public getMethodFlags ( array $mutation ) : integer
$mutation array
return integer

reverseMutation() public method

Reverse a previously applied mutation to the given file
public reverseMutation ( array $mutation )
$mutation array

Property Details

$_methodPreserveCode protected_oe property

Method signature hash appended to a replaced method's name so it can be reinstated later without any need to separately store entire method related code blocks.
protected string $_methodPreserveCode
return string