trait Macroable (View source)

Methods

static  void
macro( string $name, callable $macro)

Register a custom macro.

static  bool
hasMacro( string $name)

Checks if macro is registered.

static  mixed
__callStatic( string $method, array $parameters)

Dynamically handle calls to the class.

mixed
__call( string $method, array $parameters)

Dynamically handle calls to the class.

Details

at line line 24
static void macro( string $name, callable $macro)

Register a custom macro.

Parameters

string $name
callable $macro

Return Value

void

at line line 35
static bool hasMacro( string $name)

Checks if macro is registered.

Parameters

string $name

Return Value

bool

at line line 49
static mixed __callStatic( string $method, array $parameters)

Dynamically handle calls to the class.

Parameters

string $method
array $parameters

Return Value

mixed

Exceptions

BadMethodCallException

at line line 71
mixed __call( string $method, array $parameters)

Dynamically handle calls to the class.

Parameters

string $method
array $parameters

Return Value

mixed

Exceptions

BadMethodCallException