public function findObjectsByMethod($method, $value, array $methodArgs = array()) {
        $return = new ArrayCollection();
        foreach ($this as $object) {
            if (method_exists($object, $method)) {
                if ($value === call_user_func_array(array($object, $method), $methodArgs))
                    $return->append($object);
            }
        }
        return $return;
    }
public function findObjectsByMethod($method, $value, array $methodArgs = array()) {
        $return = new ArrayCollection();
        foreach ($this as $object) {
            if (method_exists($object, $method)) {
                if ($value === call_user_func_array(array($object, $method), $methodArgs))
                    $return->append($object);
            }
        }
        return $return;
    }
public function findObjectsByMethod ( $ method , $ value , array $ methodArgs = array ( ) ) { $ return = new ArrayCollection ( ) ; foreach ( $ this as $ object ) { if ( method_exists ( $ object , $ method ) ) { if ( $ value === call_user_func_array ( array ( $ object , $ method ) , $ methodArgs ) ) $ return -> append ( $ object ) ; } } return $ return ; }
Finds all objects that the given method returns the given value
@param string $method
@param mixed $value
@param array $methodArgs
@return \DBScribe\ArrayCollection
Finds all objects that the given method returns the given value