protected function _compareData($dataToCheck, $key, $originalData, $comparator)
    {
        if (is_callable($dataToCheck)) {
            return call_user_func_array($dataToCheck, [$key, $originalData, $this]);
        }

        return $this->_comparator($originalData, $dataToCheck, $comparator);
    }
protected function _compareData($dataToCheck, $key, $originalData, $comparator)
    {
        if (is_callable($dataToCheck)) {
            return call_user_func_array($dataToCheck, [$key, $originalData, $this]);
        }

        return $this->_comparator($originalData, $dataToCheck, $comparator);
    }
protected function _compareData ( $ dataToCheck , $ key , $ originalData , $ comparator ) { if ( is_callable ( $ dataToCheck ) ) { return call_user_func_array ( $ dataToCheck , [ $ key , $ originalData , $ this ] ) ; } return $ this -> _comparator ( $ originalData , $ dataToCheck , $ comparator ) ; }
compare given data with possibility to use callable functions to check data

@param mixed $dataToCheck
@param string $key
@param mixed $originalData
@param string $comparator
@return bool
compare given data with possibility to use callable functions to check data