Properties

$id

$id : 

Type

$client

$client : 

Type

$properties

$properties : 

Type

$lazyLoad

$lazyLoad : 

Type

Methods

__construct()

__construct(\Everyman\Neo4j\Client $client)

Build the container and set its client

Parameters

\Everyman\Neo4j\Client $client

getId()

getId() : integer

Get the entity's id

Returns

integer

getProperties()

getProperties() : array

Return all properties

Returns

array

getProperty()

getProperty(string $property) : mixed

Return the named property

Parameters

string $property

Returns

mixed

hasId()

hasId() : boolean

Is this entity identified?

Returns

boolean

removeProperty()

removeProperty(string $property) : \Everyman\Neo4j\PropertyContainer

Remove a property set on the entity

Parameters

string $property

Returns

\Everyman\Neo4j\PropertyContainer

setProperties()

setProperties(array $properties) : \Everyman\Neo4j\PropertyContainer

Set multiple properties on the entity

Parameters

array $properties

Returns

\Everyman\Neo4j\PropertyContainer

setProperty()

setProperty(string $property, mixed $value) : \Everyman\Neo4j\PropertyContainer

Set a property on the entity

Parameters

string $property
mixed $value

Returns

\Everyman\Neo4j\PropertyContainer

useLazyLoad()

useLazyLoad(boolean $lazyLoad) : \Everyman\Neo4j\PropertyContainer

Should this entity be lazy-loaded if necessary?

Parameters

boolean $lazyLoad

Returns

\Everyman\Neo4j\PropertyContainer

findPathsTo()

findPathsTo(\Everyman\Neo4j\Node $to, string $type, string $dir) : \Everyman\Neo4j\PathFinder

Find paths from this node to the given node

Parameters

\Everyman\Neo4j\Node $to
string $type
string $dir

Returns

\Everyman\Neo4j\PathFinder

getFirstRelationship()

getFirstRelationship(mixed $types, string $dir) : \Everyman\Neo4j\Relationship

Get the first relationship of this node that matches the given criteria

Parameters

mixed $types

string or array of strings

string $dir

Returns

\Everyman\Neo4j\Relationship

getRelationships()

getRelationships(mixed $types, string $dir) : array

Get relationships of this node

Parameters

mixed $types

string or array of strings

string $dir

Returns

array —

of Relationship

loadProperties()

loadProperties()

Set up the properties array the first time we need it

This includes loading the properties from the server if we can get them.