Add type hints to dml.php methods

Bug 1400975

Change-Id: I0b7145a6febdb9a5e7c32da9e5ae6cc138840f9b
Merge "Add type hints to dml.php methods"