Update ObjectBuilder.php

Add `@throws` phpdocs in enum getter/setter.
Merge pull request #713 from sbarex/patch-2

Update ObjectBuilder.php