Document DboSource::getConstraint().

Also, update the function signature (to be compliant with other
functions) and type hint $LinkModel.
Merge pull request #2518 from bar/2.5-dbosource-getconstraint

Document DboSource::getConstraint().