public static function equalTo($value, $otherElementOrValue, $context = null) { if (func_num_args() == 2) { return $value == $otherElementOrValue; } return $value == Arr::getByPath($context, $otherElementOrValue); }
function getItemValue($item) { return Arr::getByPath($this->data, $item); }