Skip to content

Commit 5feec76

Browse files
committed
worked on comments
1 parent 9deb7ba commit 5feec76

File tree

7 files changed

+108
-151
lines changed

7 files changed

+108
-151
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"guzzlehttp/guzzle": "^7.9",
77
"psr/http-client": "^1.0",
88
"ext-json": "*",
9-
"php": "^8.1",
10-
"symfony/finder": "^7.2"
9+
"php": "^8.1"
1110
},
1211

1312
"require-dev": {
@@ -31,6 +30,7 @@
3130
"email": "[email protected]"
3231
}
3332
],
33+
"symfony/finder": "^7.2",
3434
"config": {
3535
"allow-plugins": {
3636
"php-http/discovery": true

composer.lock

Lines changed: 77 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Exception/Neo4jException.php

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
use Exception;
66

7+
8+
/**
9+
* @api
10+
*/
11+
712
class Neo4jException extends Exception
813
{
914
private readonly string $errorCode;
@@ -28,32 +33,22 @@ public function __construct(
2833
parent::__construct($message, $statusCode, $previous);
2934
}
3035

31-
/**
32-
* @api
33-
*/
34-
3536
public function getErrorCode(): string
3637
{
3738
return $this->errorCode;
3839
}
39-
/**
40-
* @api
41-
*/
40+
4241

4342
public function getType(): ?string
4443
{
4544
return $this->errorType;
4645
}
47-
/**
48-
* @api
49-
*/
46+
5047
public function getSubType(): ?string
5148
{
5249
return $this->errorSubType;
5350
}
54-
/**
55-
* @api
56-
*/
51+
5752
public function getName(): ?string
5853
{
5954
return $this->errorName;

src/Neo4jQueryAPI.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ public function __construct(Client $client)
2929
*/
3030
public static function login(string $address, string $username, string $password): self
3131
{
32-
// $username = 'neo4j';
33-
// $password = '9lWmptqBgxBOz8NVcTJjgs3cHPyYmsy63ui6Spmw1d0';
34-
//// $connectionUrl = 'https://6f72daa1.databases.neo4j.io/db/neo4j/query/v2';
3532

3633

3734
$client = new Client([

src/Objects/Bookmarks.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
<?php
22

33
namespace Neo4j\QueryAPI\Objects;
4-
4+
/**
5+
* @api
6+
*/
57
class Bookmarks implements \Countable
68
{
79
public function __construct(private array $bookmarks)
810
{
911
}
10-
/**
11-
* @api
12-
*/
12+
1313
public function addBookmarks(?Bookmarks $newBookmarks): void
1414
{
1515
if ($newBookmarks !== null) {
1616
$this->bookmarks = array_unique(array_merge($this->bookmarks, $newBookmarks->bookmarks));
1717
}
1818
}
19-
/**
20-
* @api
21-
*/
19+
2220

2321
public function getBookmarks(): array
2422
{
2523
return $this->bookmarks;
2624
}
27-
/**
28-
* @api
29-
*/
25+
3026
public function count(): int
3127
{
3228
return count($this->bookmarks);

0 commit comments

Comments
 (0)