\Everyman\Neo4jPropertyContainer

Represents an entity that is a collection of properties

Summary

Methods
Properties
Constants
__construct()
delete()
load()
save()
getClient()
getId()
getProperties()
getProperty()
hasId()
removeProperty()
setClient()
setId()
setProperties()
setProperty()
useLazyLoad()
No public properties found
No constants found
loadProperties()
$id
$client
$properties
$lazyLoad
N/A
No private methods found
No private properties found
N/A

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

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.