interface BeforeCallAspect (View source)

A BeforeCallAspect is run before a method is executed.

This is a declared interface, but isn't actually required as PHP doesn't really care about types...

Methods

public
beforeCall(object $proxied, string $method, string $args, mixed $alternateReturn)

Call this aspect before a method is executed

Details

beforeCall(object $proxied, string $method, string $args, mixed $alternateReturn)

Call this aspect before a method is executed

Parameters

object $proxied

The object having the method called upon it.

string $method

The name of the method being called

string $args

The arguments that were passed to the method call

mixed $alternateReturn

An alternative return value that should be passed to the caller. Only has effect of beforeCall returns false