src/Util/Validator.php
protected function validateEquals($field, $value, array $params)
    {
        // extract the second field value, this accounts for nested array values
        [$field2Value, $multiple] = $this->getPart($this->_fields, \explode('.', $params[0]));

        return null !== $field2Value && $value === $field2Value;
    }
protected function validateEquals($field, $value, array $params)
    {
        // extract the second field value, this accounts for nested array values
        [$field2Value, $multiple] = $this->getPart($this->_fields, \explode('.', $params[0]));

        return null !== $field2Value && $value === $field2Value;
    }
protected function validateEquals ( $ field , $ value , array $ params ) { // extract the second field value, this accounts for nested array values [ $ field2Value , $ multiple ] = $ this -> getPart ( $ this -> _fields , \ explode ( '.' , $ params [ 0 ] ) ) ; return null !== $ field2Value && $ value === $ field2Value ; }
Validate that two values match

@param  string $field
@param  mixed  $value
@param  array  $params

@internal param array $fields
@return bool
Validate that two values match