Class Helpers
Patchable helpers of the HTTP package.
The following helpers can be patched:
Methods summary
public static
__callStatic( string $name
, array $arguments
)
: mixed
Calls the callback of a patchable function.
Calls the callback of a patchable function.
Parameters
$name
- Name of the function.
$arguments
- Arguments.
Returns
mixed
public static
patch( string $name
, callable $callback
)
: callable
Patches a patchable function.
Patches a patchable function.
Parameters
$name
- Name of the function.
$callback
- Callback.
Returns
callable
Previous callable.
Throws
LogicException
in attempt to patch an undefined function.