Document DboSource::getConstraint().

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