\Everyman\Neo4jEntityMapper

Used to convert arbitrary arrays into Nodes and Relationships where appropriate.

Summary

Methods
Properties
Constants
__construct()
getEntityFor()
getIdFromUri()
makeNode()
makeRelationship()
populateNode()
populatePath()
populateRelationship()
No public properties found
No constants found
getNodeFromUri()
getRelationshipFromUri()
$client
N/A
No private methods found
No private properties found
N/A

Properties

$client

$client : 

Type

Methods

__construct()

__construct(\Everyman\Neo4j\Client $client)

Set the client for retrieving related entities

Parameters

\Everyman\Neo4j\Client $client

getEntityFor()

getEntityFor(mixed $value) : mixed

Given any object, see if it fulfills the contract for being a path, node or relationship data returned by the server. If so, return a full Path, Node or Relationship instance.

Else, return the value untainted.

Parameters

mixed $value

Returns

mixed

getIdFromUri()

getIdFromUri(string $uri) : mixed

Get an id from a URI

Parameters

string $uri

Returns

mixed

makeNode()

makeNode(array $data) : \Everyman\Neo4j\Node

Generate and populate a node from the given data

Parameters

array $data

Returns

\Everyman\Neo4j\Node

makeRelationship()

makeRelationship(array $data) : \Everyman\Neo4j\Relationship

Generate and populate a relationship from the given data

Parameters

array $data

Returns

\Everyman\Neo4j\Relationship

populatePath()

populatePath(\Everyman\Neo4j\Path $path, array $data, boolean $full) : \Everyman\Neo4j\Path

Fill a path with data

Parameters

\Everyman\Neo4j\Path $path
array $data
boolean $full

Returns

\Everyman\Neo4j\Path

getNodeFromUri()

getNodeFromUri(string $uri) : \Everyman\Neo4j\Node

Retrieve a node by it's 'self' uri

Parameters

string $uri

Returns

\Everyman\Neo4j\Node

getRelationshipFromUri()

getRelationshipFromUri(string $uri) : \Everyman\Neo4j\Relationship

Retrieve a relationship by it's 'self' uri

Parameters

string $uri

Returns

\Everyman\Neo4j\Relationship