Add PHPDoc signatures for all functions.