Property | Type | Description | |
---|---|---|---|
$_registered | array | Registered monkey patches. |
Method | Description | |
---|---|---|
patch ( string $source, string $dest = null ) | Setup a monkey patch. | |
patched ( string $namespace, string $ref, boolean $isFunc = true, &$substitute = null ) : string | Patches the string. | |
reset ( string $source = null ) | Clears the registered references. |
public static patched ( string $namespace, string $ref, boolean $isFunc = true, &$substitute = null ) : string | ||
$namespace | string | The namespace. |
$ref | string | The fully namespaced class/function reference string. |
$isFunc | boolean | Boolean indicating if $ref is a function reference. |
return | string | A fully namespaced reference. |
protected static array $_registered | ||
return | array |