Skip to content

Commit f54a948

Browse files
authored
added invalidbookmarktest and updated readme
* invalidbooktest is created * updated README.md
1 parent f03bb95 commit f54a948

15 files changed

+55
-28
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ composer require neo4j-php/query-api
2020

2121
## Client Installation
2222

23-
If you plan on using the HTTP drivers, make sure you have psr-7, psr-17, and psr-18 implementations included in your project.
24-
If you don't have any, you can install them via Composer:
23+
This client uses the HTTP protocol, make sure you have psr-7, psr-17, and psr-18 implementations included in your project.
24+
If you don't have any, you can install one of the many options via Composer:
2525

2626
```sh
27-
composer require psr/http-message psr/http-factory psr/http-client
27+
composer require guzzlehttp/guzzle
2828
```
2929

3030
> **_NOTE:_** PSR-17 and PSR-18 are essential for HTTP client communication. Other compatible clients like Guzzle can also be used.
@@ -121,19 +121,18 @@ Cypher values and types map to these php types and classes:
121121
| Authentication | Yes |
122122
| Transaction | Yes |
123123
| HTTP | Yes |
124-
| Cluster | Partly* |
124+
| Cluster | Partly * |
125125
| Aura | Yes |
126126
| Bookmarks | Yes |
127127
| Bolt | No |
128128

129-
> **_NOTE:_** It supports neo4j databases versions > 5.25 or Neo4j Aura (which has QueryAPI enabled.)
130129
> \* Client side routing is only supported in the Neo4j driver
131130
132-
131+
**_NOTE:_** *_It supports neo4j databases versions > 5.25 or Neo4j Aura (which has QueryAPI enabled.)_*
133132

134133
## Contributing
135134

136-
Please see CONTRIBUTING for details.
135+
Please see [CONTRIBUTING.md](./Contributing.md) for details.
137136

138137
## Security
139138

@@ -142,8 +141,10 @@ If you discover any security-related issues, please email *[email protected]*
142141
## Credits
143142

144143
- Created with ❤️ by Nagels
145-
- [Ghlen Nagels](https://www.linkedin.com/in/ghlen/), [Kiran Chandani](https://www.linkedin.com/in/kiran-chandani-5628a1213/), [Pratiksha Zalte]()
144+
- [Kiran Chandani](https://www.linkedin.com/in/kiran-chandani-5628a1213/),
145+
- [Pratiksha Zalte](https://github.com/p123-stack),
146+
- [Ghlen Nagels](https://www.linkedin.com/in/ghlen/)
146147

147148
## License
148149

149-
The MIT License (MIT). Please see License File for more information.
150+
The MIT License (MIT). Please see [License File](LICENSE) for more information.

phpunit.dist.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="tests/bootstrap.php">
2+
<phpunit bootstrap="tests/bootstrap.php"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
>
36
<!-- Test Suite Configuration -->
47
<testsuites>
58
<testsuite name="Application Test Suite">

src/Neo4jRequestFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Psr\Http\Message\RequestInterface;
99
use Psr\Http\Message\StreamFactoryInterface;
1010

11-
class Neo4jRequestFactory
11+
final class Neo4jRequestFactory
1212
{
1313
public function __construct(
1414
private RequestFactoryInterface $psr17Factory,

src/OGM.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Neo4j\QueryAPI\Objects\Path;
99
use InvalidArgumentException;
1010

11-
class OGM
11+
final class OGM
1212
{
1313
/**
1414
* @param array<array-key, mixed> $data

src/Objects/Authentication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Neo4j\QueryAPI\Authentication\BearerAuthentication;
88
use Neo4j\QueryAPI\Authentication\NoAuth;
99

10-
class Authentication
10+
final class Authentication
1111
{
1212
public static function basic(string $username, string $password): AuthenticateInterface
1313
{

src/Objects/Path.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Represents a path in a Neo4j graph, consisting of nodes and relationships.
77
*/
88

9-
class Path
9+
final class Path
1010
{
1111
/**
1212
* @var Node[] Array of nodes in the path.

src/Objects/Person.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @psalm-suppress UnusedClass
77
* Represents a Person node in the Neo4j graph.
88
*/
9-
class Person extends Node
9+
final class Person extends Node
1010
{
1111
/**
1212
* Person constructor.

src/Objects/Point.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Represents a point with x, y, z coordinates, and SRID (Spatial Reference System Identifier).
77
*/
8-
class Point
8+
final class Point
99
{
1010
/**
1111
* @param float $x The x coordinate of the point.

src/Objects/ProfiledQueryPlanArguments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Neo4j\QueryAPI\Objects;
44

5-
class ProfiledQueryPlanArguments
5+
final class ProfiledQueryPlanArguments
66
{
77
public function __construct(
88
public readonly ?int $globalMemory = null,

src/Objects/Relationship.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Represents a relationship in a Neo4j graph, with a type and associated properties.
77
*/
88

9-
class Relationship
9+
final class Relationship
1010
{
1111
/**
1212
* @var string The type of the relationship (e.g., "FRIENDS_WITH", "WORKS_FOR").

0 commit comments

Comments
 (0)