Skip to content

Commit 37cdbcc

Browse files
committed
upgrade to cypher datastructures 0.2.0 wip
1 parent 2c0025e commit 37cdbcc

File tree

110 files changed

+1257
-607
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1257
-607
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
],
2020
"require": {
2121
"php": "^8.1",
22-
"syndesi/cypher-data-structures": "^0.1.3",
23-
"laudis/neo4j-php-client": "^2.7",
22+
"syndesi/cypher-data-structures": "^0.2.0",
23+
"laudis/neo4j-php-client": "^2.8",
2424
"psr/log": "^3.0",
2525
"psr/event-dispatcher": "^1.0"
2626
},

src/Contract/ActionCypherElementQueueInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
namespace Syndesi\CypherEntityManager\Contract;
66

7-
use Iterator;
8-
9-
interface ActionCypherElementQueueInterface extends Iterator
7+
interface ActionCypherElementQueueInterface extends \Iterator
108
{
119
public function enqueue(ActionCypherElementInterface $element): self;
1210

src/Contract/ConstraintStatementInterface.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/Contract/EntityManagerInterface.php

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,47 @@
55
namespace Syndesi\CypherEntityManager\Contract;
66

77
use Laudis\Neo4j\Contracts\ClientInterface;
8-
use Syndesi\CypherDataStructures\Contract\ConstraintInterface;
9-
use Syndesi\CypherDataStructures\Contract\IndexInterface;
8+
use Syndesi\CypherDataStructures\Contract\NodeConstraintInterface;
9+
use Syndesi\CypherDataStructures\Contract\NodeIndexInterface;
1010
use Syndesi\CypherDataStructures\Contract\NodeInterface;
11+
use Syndesi\CypherDataStructures\Contract\RelationConstraintInterface;
12+
use Syndesi\CypherDataStructures\Contract\RelationIndexInterface;
1113
use Syndesi\CypherDataStructures\Contract\RelationInterface;
1214
use Syndesi\CypherEntityManager\Type\ActionType;
1315

1416
interface EntityManagerInterface
1517
{
16-
public function add(ActionType $actionType, NodeInterface|RelationInterface|ConstraintInterface|IndexInterface|SimilarNodeQueueInterface|SimilarRelationQueueInterface $element): self;
17-
18-
public function create(NodeInterface|RelationInterface|ConstraintInterface|IndexInterface|SimilarNodeQueueInterface|SimilarRelationQueueInterface $element): self;
19-
20-
public function merge(NodeInterface|RelationInterface|ConstraintInterface|IndexInterface|SimilarNodeQueueInterface|SimilarRelationQueueInterface $element): self;
21-
22-
public function delete(NodeInterface|RelationInterface|ConstraintInterface|IndexInterface|SimilarNodeQueueInterface|SimilarRelationQueueInterface $element): self;
18+
public function add(ActionType $actionType, NodeInterface|
19+
RelationInterface|
20+
NodeIndexInterface|
21+
RelationIndexInterface|
22+
NodeConstraintInterface|
23+
RelationConstraintInterface|
24+
SimilarNodeQueueInterface|
25+
SimilarRelationQueueInterface $element): self;
26+
27+
public function create(NodeInterface|
28+
RelationInterface|
29+
NodeIndexInterface|
30+
RelationIndexInterface|
31+
NodeConstraintInterface|
32+
RelationConstraintInterface|
33+
SimilarNodeQueueInterface|
34+
SimilarRelationQueueInterface $element): self;
35+
36+
public function merge(NodeInterface|
37+
RelationInterface|
38+
SimilarNodeQueueInterface|
39+
SimilarRelationQueueInterface $element): self;
40+
41+
public function delete(NodeInterface|
42+
RelationInterface|
43+
NodeIndexInterface|
44+
RelationIndexInterface|
45+
NodeConstraintInterface|
46+
RelationConstraintInterface|
47+
SimilarNodeQueueInterface|
48+
SimilarRelationQueueInterface $element): self;
2349

2450
public function flush(): self;
2551

src/Contract/Event/ConstraintPostCreateEventInterface.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Contract/Event/ConstraintPostDeleteEventInterface.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Contract/Event/ConstraintPreCreateEventInterface.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Contract/Event/ConstraintPreDeleteEventInterface.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Contract/Event/IndexPostCreateEventInterface.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Contract/Event/IndexPostDeleteEventInterface.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)