Validate adherence to 'enum' constraint in server-side logging

This patch ensures enum constraints are enforced when validating server-side
events in PHP.

Bug: 49096
Change-Id: I700ec58de1be6de01093cc57b5ec6f4b23429f3d