Skip to content

Commit 53a2c2d

Browse files
committed
added proper get<attribute> methods
1 parent 2265fe9 commit 53a2c2d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Types/Node.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,24 @@ public function __construct(int $id, CypherList $labels, CypherMap $properties)
3939
}
4040

4141
/**
42+
* @deprecated
43+
* @see self::getLabels
44+
*
4245
* @return CypherList<string>
4346
*/
4447
public function labels(): CypherList
4548
{
4649
return $this->labels;
4750
}
4851

52+
/**
53+
* @return CypherList<string>
54+
*/
55+
public function getLabels(): CypherList
56+
{
57+
return $this->labels;
58+
}
59+
4960
/**
5061
* @return CypherMap<OGMTypes>
5162
*
@@ -57,11 +68,20 @@ public function properties(): CypherMap
5768
return $this->properties;
5869
}
5970

71+
/**
72+
* @deprecated
73+
* @see self::getId
74+
*/
6075
public function id(): int
6176
{
6277
return $this->id;
6378
}
6479

80+
public function getId(): int
81+
{
82+
return $this->id;
83+
}
84+
6585
/**
6686
* @return OGMTypes
6787
*/

0 commit comments

Comments
 (0)