Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 355 Bytes

AllOfFilter.md

File metadata and controls

22 lines (17 loc) · 355 Bytes

AllOfFilter

This filter accepts objects if all the provided filters also accepts the objects.

For example:

class MyObject
{
    private $value;
    
    public function getOtherValue()
    {
        return 4;
    }
}

$objects = $funnel->findByAllOf(
    Funnel::propertyFilter('value', 4),
    Funnel::methodFilter('getOtherValue', 4)
);