Correct: these are just constants. They're documented on http://php.net/mongoclient and should just be strings. The PHP driver doesn't actually check user-supplied read preferences against a whitelist (I don't think the C driver is any different), so we don't use anything like an enum.