jadell / neo4jphp

PHP wrapper of the Neo4j REST interface
Other
532 stars 137 forks source link

Path::count() and Path::getLength() are essentially the same #127

Open jgillmanjr opened 10 years ago

jgillmanjr commented 10 years ago

Path::getLength() just calls Path::count().

Path::count() documentation also indicates it counts the relations in a path, which isn't true as it gives a count of nodes or relations in a path depending on the set context.

Path::getLength() should probably count the number of relations in a path, as the doc block indicates, and the doc block for Path::count() should be updated to indicate it returns a count based on the context set.