src/DMS/Filter/Filters/Callback.php
protected function useObjectMethod($method, $value)
    {
        $currentObject = $this->getCurrentObject();

        if ($currentObject === null) {
            throw new FilterException(
                "The target object was not provided to the filter, can't execute method. Please report this."
            );
        }

        if (! method_exists($currentObject, $method)) {
            throw new InvalidCallbackException(
                sprintf(
                    "CallbackFilter: Method '%s' not found in object of type '%s'",
                    $method,
                    get_class($currentObject)
                )
            );
        }

        return $currentObject->$method($value);
    }
protected function useObjectMethod($method, $value)
    {
        $currentObject = $this->getCurrentObject();

        if ($currentObject === null) {
            throw new FilterException(
                "The target object was not provided to the filter, can't execute method. Please report this."
            );
        }

        if (! method_exists($currentObject, $method)) {
            throw new InvalidCallbackException(
                sprintf(
                    "CallbackFilter: Method '%s' not found in object of type '%s'",
                    $method,
                    get_class($currentObject)
                )
            );
        }

        return $currentObject->$method($value);
    }
protected function useObjectMethod ( $ method , $ value ) { $ currentObject = $ this -> getCurrentObject ( ) ; if ( $ currentObject === null ) { throw new FilterException ( "The target object was not provided to the filter, can't execute method. Please report this." ) ; } if ( ! method_exists ( $ currentObject , $ method ) ) { throw new InvalidCallbackException ( sprintf ( "CallbackFilter: Method '%s' not found in object of type '%s'" , $ method , get_class ( $ currentObject ) ) ) ; } return $ currentObject -> $ method ( $ value ) ; }
Filters by executing a method in the object

@param string $method
@param mixed $value
@throws \DMS\Filter\Exception\FilterException
@throws \DMS\Filter\Exception\InvalidCallbackException
@return mixed
Filters by executing a method in the object