Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 277 Bytes

MethodFilter.md

File metadata and controls

18 lines (14 loc) · 277 Bytes

MethodFilter

This filter accepts objects if the evaluation of the method is the same as the provided value.

For example:

class MyObject
{
    public function getValue()
    {
        return rand(0, 10);
    }
}

$objects = $funnel->findByMethod('getValue', 5);