Document DboSource::getConstraint().

Also, update the parameters in the function signature (to be compliant with other functions) and type hint $LinkModel.