ReturnTypeNode
ReturnTypeNode
Holds the parameters for running a traversal
__construct(\Everyman\Neo4j\Client $client)
Build the traversal and set its client
\Everyman\Neo4j\Client | $client |
addRelationship(string $type, string $direction) : \Everyman\Neo4j\Traversal
Add a relationship type and direction
string | $type | |
string | $direction |
getClient() : \Everyman\Neo4j\Client
Get the finder's client
getResults(\Everyman\Neo4j\Node $startNode, string $returnType) : array
Run the traversal, and return the results
\Everyman\Neo4j\Node | $startNode | |
string | $returnType |
getSingleResult(\Everyman\Neo4j\Node $startNode, string $returnType) : mixed
Run the traversal, and return the first result
\Everyman\Neo4j\Node | $startNode | |
string | $returnType |
setMaxDepth(integer $max) : \Everyman\Neo4j\Traversal
Set the maximum allowed path length
integer | $max |
setOrder(string $order) : \Everyman\Neo4j\Traversal
Set the order in which to traverse
string | $order |
setPruneEvaluator(string $language, string $body) : \Everyman\Neo4j\Traversal
Set the prune evaluator If language is one of the special builtin self::Prune* constants, the evaluator language will be set to 'builtin' and the body will be set to the value of the constant.
string | $language | |
string | $body |
setReturnFilter(string $language, string $body) : \Everyman\Neo4j\Traversal
Set the return filter If language is one of the special builtin self::Return* constants, the filter language will be set to 'builtin' and the body will be set to the value of the constant.
string | $language | |
string | $body |
setUniqueness(string $uniqueness) : \Everyman\Neo4j\Traversal
Set the uniquenss
string | $uniqueness |