File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 27
27
use Bolt \structures \Time as BoltTime ;
28
28
use Bolt \structures \UnboundRelationship as BoltUnboundRelationship ;
29
29
use function call_user_func ;
30
+ use Laudis \Neo4j \Types \Abstract3DPoint ;
31
+ use Laudis \Neo4j \Types \AbstractPoint ;
30
32
use Laudis \Neo4j \Types \Cartesian3DPoint ;
31
33
use Laudis \Neo4j \Types \CartesianPoint ;
32
34
use Laudis \Neo4j \Types \CypherList ;
@@ -187,7 +189,7 @@ private function makeFromBoltUnboundRelationship(BoltUnboundRelationship $rel):
187
189
);
188
190
}
189
191
190
- private function makeFromBoltPoint2D (BoltPoint2d $ x ): CartesianPoint
192
+ private function makeFromBoltPoint2D (BoltPoint2d $ x ): AbstractPoint
191
193
{
192
194
if ($ x ->srid () === CartesianPoint::SRID ) {
193
195
return new CartesianPoint ($ x ->x (), $ x ->y ());
@@ -197,7 +199,7 @@ private function makeFromBoltPoint2D(BoltPoint2d $x): CartesianPoint
197
199
throw new UnexpectedValueException ('An srid of ' .$ x ->srid ().' has been returned, which has not been implemented. ' );
198
200
}
199
201
200
- private function makeFromBoltPoint3D (BoltPoint3D $ x ): Cartesian3DPoint
202
+ private function makeFromBoltPoint3D (BoltPoint3D $ x ): Abstract3DPoint
201
203
{
202
204
if ($ x ->srid () === Cartesian3DPoint::SRID ) {
203
205
return new Cartesian3DPoint ($ x ->x (), $ x ->y (), $ x ->z ());
Original file line number Diff line number Diff line change 13
13
14
14
namespace Laudis \Neo4j \Types ;
15
15
16
+ use Laudis \Neo4j \Contracts \BoltConvertibleInterface ;
16
17
use Laudis \Neo4j \Contracts \PointInterface ;
17
18
18
19
/**
Original file line number Diff line number Diff line change 13
13
14
14
namespace Laudis \Neo4j \Types ;
15
15
16
+ use Laudis \Neo4j \Contracts \BoltConvertibleInterface ;
16
17
use Laudis \Neo4j \Contracts \PointInterface ;
17
18
18
19
/**
You can’t perform that action at this time.
0 commit comments