I am new to neo4j and neo4j-php-clien, and following the tutorial in Basic Usage.
This is what I have:
$result = $client->run("MATCH (n:Person) RETURN n");
echo var_dump ($result->getRecords());
this is the output:
object(GraphAware\Neo4j\Client\Formatter\RecordView)#31 (3) { ["keys":protected]=> array(1) { [0]=> string(1) "n" } ["values":protected]=> array(1) { [0]=> object(GraphAware\Neo4j\Client\Formatter\Type\Node)#40 (3) { ["id":protected]=> int(187) ["labels":protected]=> array(1) { [0]=> string(8) "X2Person" } ["properties":protected]=> array(2) { ["name"]=> string(4) "Ales" ["age"]=> int(34) } } } ["keyToIndexMap":"GraphAware\Neo4j\Client\Formatter\RecordView":private]=> array(1) { ["n"]=> int(0) } }
How can I access the protected and private fields of the record?