Elgg  Version 5.1
Public Member Functions | List of all members
Elgg\EventsService\MethodMatcher Class Reference

Identify a static/dynamic method callable, even if contains an object to which you don't have a reference. More...

Public Member Functions

 __construct ($type, $method)
 Constructor. More...
 
 matches ($subject)
 Does the given callable match the specification? More...
 

Detailed Description

Identify a static/dynamic method callable, even if contains an object to which you don't have a reference.

Definition at line 11 of file MethodMatcher.php.

Constructor & Destructor Documentation

Elgg\EventsService\MethodMatcher::__construct (   $type,
  $method 
)

Constructor.

Parameters
string$typeClass to match
string$methodMethod name to match

Definition at line 29 of file MethodMatcher.php.

Member Function Documentation

Elgg\EventsService\MethodMatcher::matches (   $subject)

Does the given callable match the specification?

Parameters
callable$subjectCallable to test
Returns
bool

Definition at line 40 of file MethodMatcher.php.


The documentation for this class was generated from the following file: