public function match($value, string $field, bool $strict = false): bool
    {
        if ($strict) {
            return $value === $this->getValidator()->getValue($field, null);
        }

        return $value == $this->getValidator()->getValue($field, null);
    }
public function match($value, string $field, bool $strict = false): bool
    {
        if ($strict) {
            return $value === $this->getValidator()->getValue($field, null);
        }

        return $value == $this->getValidator()->getValue($field, null);
    }
public function match ( $ value , string $ field , bool $ strict = false ) : bool { if ( $ strict ) { return $ value === $ this -> getValidator ( ) -> getValue ( $ field , null ) ; } return $ value == $ this -> getValidator ( ) -> getValue ( $ field , null ) ; }
Check if value matches value from another field.

@param mixed  $value
@param string $field
@param bool   $strict

@return bool
Check if value matches value from another field .