\Phug\PartialCallbacksTrait

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
addCallback()
getCallbacks()
No protected properties found
N/A
No private methods found
$callbacks
N/A

Properties

$callbacks

$callbacks : array<mixed,callable[]>

Type

array<mixed,callable[]>

Methods

addCallback()

addCallback(string  $methodName, callable  $callback) 

Add a callback in the group of the given method name.

Parameters

string $methodName
callable $callback

getCallbacks()

getCallbacks(string  $methodName) : array<mixed,callable>

Get callbacks for a given method name.

Parameters

string $methodName

if you pass a name including the class (such as MyClass::myMethod), then class name is ignored.

Returns

array<mixed,callable>