public function fieldLessThanAnother(string $fieldName, string $otherFieldName)
    {
        $this->validateFieldsExist(__METHOD__, $fieldName, $otherFieldName);

        return $this->validate(new FieldLessThanAnotherValidator($this->fields[$fieldName], $this->fields[$otherFieldName]));
    }
public function fieldLessThanAnother(string $fieldName, string $otherFieldName)
    {
        $this->validateFieldsExist(__METHOD__, $fieldName, $otherFieldName);

        return $this->validate(new FieldLessThanAnotherValidator($this->fields[$fieldName], $this->fields[$otherFieldName]));
    }
public function fieldLessThanAnother ( string $ fieldName , string $ otherFieldName ) { $ this -> validateFieldsExist ( __METHOD__ , $ fieldName , $ otherFieldName ) ; return $ this -> validate ( new FieldLessThanAnotherValidator ( $ this -> fields [ $ fieldName ] , $ this -> fields [ $ otherFieldName ] ) ) ; }
Validates the first supplied field is less than the second field.

@param string $fieldName
@param string $otherFieldName

@return static
@throws InvalidArgumentException If the fields dont exist
Validates the first supplied field is less than the second field .