neoxygen / neo4j-neoclient

Simple PHP HttpClient for the Neo4j ReST API with Multi DB Support
MIT License
121 stars 138 forks source link

Add type hints for Response and Result. #54

Closed eddieantonio closed 9 years ago

eddieantonio commented 9 years ago

Just added some type hints and a bit of documentation for Response and especially Result. If it is safe to assume that sendCypherQuery always returns Response, then I'd add a type hint for that too in the big method block in Client.

This makes the coding in a type-hinting IDE much more pleasurable:

completion-2

ikwattro commented 9 years ago

Hi,

Thanks for your PR. Indeed send Cypher query will always return a response. This response contains a Result only if setAutoFormatResponse(true) is set on init.

Merging it.

Thanks again