PHP Класс Neoxygen\NeoClient\Formatter\Result

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$errors
$identifiers array
$nodes Neoxygen\NeoClient\Formatter\Node[]
$relationships Neoxygen\NeoClient\Formatter\Relationship[]
$tableFormat array

Открытые методы

Метод Описание
__construct ( )
addIdentifierValue ( $k, $v )
addNode ( Neoxygen\NeoClient\Formatter\Node $node )
addNodeToIdentifier ( $nodeId, $identifier )
addRelationship ( Neoxygen\NeoClient\Formatter\Relationship $relationship )
addRelationshipToIdentifier ( $relationshipId, $identifier )
addRowToIdentifier ( $value, $identifier )
get ( string $identifier, mixed $default = null, boolean $singleAsArray = false ) : mixed Returns the item or items bound to the given identifier, or $default if no items are bound.
getAllByIdentifier ( ) : array
getIdentifiers ( ) : string[]
getNodeById ( integer $id ) : Neoxygen\NeoClient\Formatter\Node | null Returns a single node by its Neo4j node ID number, or null if the node is not present in the result.
getNodes ( string | string[] | null $label = null, boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[] Returns all nodes if called without arguments. Returns all nodes with the given labels if called with an array of labels. Otherwise, acts identically as {@link Result::getNodesByLabels()}.
getNodesByLabel ( string $name, boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[] Returns all nodes with the given label.
getNodesByLabels ( array $labels = [], boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[] Returns all nodes with the given labels.
getNodesCount ( ) : integer
getRelationship ( integer $id ) : Neoxygen\NeoClient\Formatter\Relationship | null Returns the relationship by its Neo4j ID.
getRelationships ( ) : Neoxygen\NeoClient\Formatter\Relationship[]
getRelationshipsCount ( ) : integer
getSingle ( string $identifier, mixed $default = null ) : mixed Returns a single item bound to the given identifier, or the default if the identifier is not bound.
getSingleNode ( string | null $label = null ) : Neoxygen\NeoClient\Formatter\Node | null Returns a single node from the nodes collection Use when you do cypher queries returning only one node.
getSingleNodeByLabel ( string $label ) : Neoxygen\NeoClient\Formatter\Node | null Returns a single node for a given label.
getTableFormat ( ) : array
hasIdentifier ( string $i ) : boolean
setTableFormat ( array $table )

Описание методов

__construct() публичный Метод

public __construct ( )

addIdentifierValue() публичный Метод

public addIdentifierValue ( $k, $v )

addNode() публичный Метод

public addNode ( Neoxygen\NeoClient\Formatter\Node $node )
$node Neoxygen\NeoClient\Formatter\Node

addNodeToIdentifier() публичный Метод

public addNodeToIdentifier ( $nodeId, $identifier )

addRelationship() публичный Метод

public addRelationship ( Neoxygen\NeoClient\Formatter\Relationship $relationship )
$relationship Neoxygen\NeoClient\Formatter\Relationship

addRelationshipToIdentifier() публичный Метод

public addRelationshipToIdentifier ( $relationshipId, $identifier )

addRowToIdentifier() публичный Метод

public addRowToIdentifier ( $value, $identifier )

get() публичный Метод

Returns the item or items bound to the given identifier, or $default if no items are bound.
public get ( string $identifier, mixed $default = null, boolean $singleAsArray = false ) : mixed
$identifier string
$default mixed A value to return if the identifier is not bound.
$singleAsArray boolean When true, always returns a single value as an array.
Результат mixed

getAllByIdentifier() публичный Метод

public getAllByIdentifier ( ) : array
Результат array

getIdentifiers() публичный Метод

public getIdentifiers ( ) : string[]
Результат string[]

getNodeById() публичный Метод

Returns a single node by its Neo4j node ID number, or null if the node is not present in the result.
public getNodeById ( integer $id ) : Neoxygen\NeoClient\Formatter\Node | null
$id integer Neo4j node ID.
Результат Neoxygen\NeoClient\Formatter\Node | null

getNodes() публичный Метод

Returns all nodes if called without arguments. Returns all nodes with the given labels if called with an array of labels. Otherwise, acts identically as {@link Result::getNodesByLabels()}.
public getNodes ( string | string[] | null $label = null, boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[]
$label string | string[] | null
$labelizedKeys boolean
Результат Neoxygen\NeoClient\Formatter\Node[]

getNodesByLabel() публичный Метод

Returns all nodes with the given label.
public getNodesByLabel ( string $name, boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[]
$name string
$labelizedKeys boolean When true, the results are indexed by node label. Assumes only one node per label.
Результат Neoxygen\NeoClient\Formatter\Node[]

getNodesByLabels() публичный Метод

Returns all nodes with the given labels.
public getNodesByLabels ( array $labels = [], boolean $labelizedKeys = false ) : Neoxygen\NeoClient\Formatter\Node[]
$labels array
$labelizedKeys boolean When true, the results are indexed by node label. Assumes one node per label.
Результат Neoxygen\NeoClient\Formatter\Node[]

getNodesCount() публичный Метод

public getNodesCount ( ) : integer
Результат integer Number of nodes in the result.

getRelationship() публичный Метод

Returns the relationship by its Neo4j ID.
public getRelationship ( integer $id ) : Neoxygen\NeoClient\Formatter\Relationship | null
$id integer The id of the relationship.
Результат Neoxygen\NeoClient\Formatter\Relationship | null

getRelationships() публичный Метод

public getRelationships ( ) : Neoxygen\NeoClient\Formatter\Relationship[]
Результат Neoxygen\NeoClient\Formatter\Relationship[]

getRelationshipsCount() публичный Метод

public getRelationshipsCount ( ) : integer
Результат integer Number of relationships in the result.

getSingle() публичный Метод

Returns a single item bound to the given identifier, or the default if the identifier is not bound.
public getSingle ( string $identifier, mixed $default = null ) : mixed
$identifier string
$default mixed A value to return if the identifier is not bound.
Результат mixed

getSingleNode() публичный Метод

Returns a single node from the nodes collection Use when you do cypher queries returning only one node.
public getSingleNode ( string | null $label = null ) : Neoxygen\NeoClient\Formatter\Node | null
$label string | null Return a node for this label only.
Результат Neoxygen\NeoClient\Formatter\Node | null

getSingleNodeByLabel() публичный Метод

Returns a single node for a given label.
public getSingleNodeByLabel ( string $label ) : Neoxygen\NeoClient\Formatter\Node | null
$label string The label to match for
Результат Neoxygen\NeoClient\Formatter\Node | null The Node or null if not node found matching the label

getTableFormat() публичный Метод

public getTableFormat ( ) : array
Результат array

hasIdentifier() публичный Метод

public hasIdentifier ( string $i ) : boolean
$i string Query identifier to check.
Результат boolean

setTableFormat() публичный Метод

public setTableFormat ( array $table )
$table array

Описание свойств

$errors защищенное свойство

protected $errors

$identifiers защищенное свойство

protected array $identifiers
Результат array

$nodes защищенное свойство

protected Node[],Neoxygen\NeoClient\Formatter $nodes
Результат Neoxygen\NeoClient\Formatter\Node[]

$relationships защищенное свойство

protected Relationship[],Neoxygen\NeoClient\Formatter $relationships
Результат Neoxygen\NeoClient\Formatter\Relationship[]

$tableFormat защищенное свойство

protected array $tableFormat
Результат array