File tree Expand file tree Collapse file tree 9 files changed +22
-5
lines changed Expand file tree Collapse file tree 9 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 19
19
* Stores relevant information of a database.
20
20
*
21
21
* @psalm-immutable
22
+ *
23
+ * @extends AbstractCypherObject<string, mixed>
22
24
*/
23
25
final class DatabaseInfo extends AbstractCypherObject
24
26
{
Original file line number Diff line number Diff line change @@ -38,7 +38,10 @@ public function __construct(
38
38
*/
39
39
public static function fromBoltResponse (Response $ response ): self
40
40
{
41
- /** @var array{code: string, message:string} $content */
41
+ /**
42
+ * @psalm-suppress ImpurePropertyFetch
43
+ * @var array{code: string, message:string} $content
44
+ */
42
45
$ content = $ response ->content ;
43
46
44
47
return self ::fromMessageAndCode ($ content ['code ' ], $ content ['message ' ]);
Original file line number Diff line number Diff line change 23
23
* @see https://neo4j.com/docs/cypher-manual/current/execution-plans/
24
24
*
25
25
* @psalm-immutable
26
+ *
27
+ * @extends AbstractCypherObject<string, mixed>
26
28
*/
27
29
final class Plan extends AbstractCypherObject
28
30
{
Original file line number Diff line number Diff line change 19
19
/**
20
20
* A plan that has been executed. This means a lot more information is available.
21
21
*
22
- * @see \Laudis\Neo4j\Databags\ Plan
22
+ * @see Plan
23
23
*
24
24
* @psalm-immutable
25
+ *
26
+ * @extends AbstractCypherObject<string, mixed>
25
27
*/
26
28
final class ProfiledPlan extends AbstractCypherObject
27
29
{
Original file line number Diff line number Diff line change 28
28
* - information about connection environment
29
29
*
30
30
* @psalm-immutable
31
+ *
32
+ * @extends AbstractCypherObject<string, mixed>
31
33
*/
32
34
final class ResultSummary extends AbstractCypherObject
33
35
{
Original file line number Diff line number Diff line change 21
21
* Provides some basic information of the server where the result is obtained from.
22
22
*
23
23
* @psalm-immutable
24
+ *
25
+ * @extends AbstractCypherObject<string, mixed>
24
26
*/
25
27
final class ServerInfo extends AbstractCypherObject
26
28
{
Original file line number Diff line number Diff line change 21
21
* @todo deprecate and create Query Object
22
22
*
23
23
* @psalm-immutable
24
+ *
25
+ * @extends AbstractCypherObject<string, mixed>
24
26
*/
25
27
final class Statement extends AbstractCypherObject
26
28
{
Original file line number Diff line number Diff line change 19
19
* Contains counters for various operations that a query triggered.
20
20
*
21
21
* @psalm-immutable
22
+ *
23
+ * @extends AbstractCypherObject<string, int|bool>
22
24
*/
23
25
final class SummaryCounters extends AbstractCypherObject
24
26
{
@@ -40,7 +42,7 @@ public function __construct(
40
42
) {}
41
43
42
44
/**
43
- * Whether or not the query contained any updates.
45
+ * Whether the query contained any updates.
44
46
*/
45
47
public function containsUpdates (): bool
46
48
{
Original file line number Diff line number Diff line change @@ -99,11 +99,11 @@ public function merge(?TransactionConfiguration $config): self
99
99
$ config ??= self ::default ();
100
100
101
101
$ metaData = $ config ->metaData ;
102
- if ($ metaData ) {
102
+ if ($ metaData !== null ) {
103
103
$ tsxConfig = $ tsxConfig ->withMetaData ($ metaData );
104
104
}
105
105
$ timeout = $ config ->timeout ;
106
- if ($ timeout ) {
106
+ if ($ timeout !== null ) {
107
107
$ tsxConfig = $ tsxConfig ->withTimeout ($ timeout );
108
108
}
109
109
You can’t perform that action at this time.
0 commit comments