Skip to content

Commit c86cb93

Browse files
author
Wout Gevaert
committed
Merge branch '5.0.0-typing-and-consistency' into 5.0.0-improvements
2 parents 2e1da1e + 28a46fa commit c86cb93

Some content is hidden

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

43 files changed

+285
-185
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
"friendsofphp/php-cs-fixer": "^3.0"
5959
},
6060
"autoload": {
61+
"files": [
62+
"src/functions.php"
63+
],
6164
"psr-4": {
6265
"WikibaseSolutions\\CypherDSL\\": "src/"
6366
}

src/Clauses/CallClause.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ public function withSubQuery(Query $subQuery): self
6161
return $this;
6262
}
6363

64-
/**
65-
* Sets the variables to include in the WITH clause. This overwrites any previously set variables.
66-
*
67-
* @param Variable[]|string[] $variables A list of variable objects, or strings to cast to variables
68-
* @return $this
69-
*
70-
* @see https://neo4j.com/docs/cypher-manual/current/clauses/call-subquery/#subquery-correlated-importing
71-
*/
72-
public function withVariables(array $variables): self
73-
{
74-
$res = [];
64+
/**
65+
* Sets the variables to include in the WITH clause. This overwrites any previously set variables.
66+
*
67+
* @param Variable[]|string[] $variables A list of variable objects, or strings to cast to variables
68+
* @return $this
69+
*
70+
* @see https://neo4j.com/docs/cypher-manual/current/clauses/call-subquery/#subquery-correlated-importing
71+
*/
72+
public function withVariables(...$variables): self
73+
{
74+
$res = [];
7575

7676
foreach ($variables as $variable) {
7777
$this->assertClass('variables', [Variable::class, 'string'], $variable);

src/Expressions/Functions/All.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
*
2222
* @see https://neo4j.com/docs/cypher-manual/current/functions/predicate/#functions-all
2323
* @see Func::all()
24-
*
25-
* @internal This class is not covered by the backwards compatibility promise of php-cypher-dsl
2624
*/
2725
final class All extends Func implements BooleanType
2826
{
@@ -51,6 +49,7 @@ final class All extends Func implements BooleanType
5149
* @param Variable|string $variable A variable that can be used from within the predicate
5250
* @param ListType|array $list A list
5351
* @param AnyType $predicate A predicate that is tested against all items in the list
52+
* @internal This method is not covered by the backwards compatibility guarantee of php-cypher-dsl
5453
*/
5554
public function __construct($variable, $list, AnyType $predicate)
5655
{

src/Expressions/Functions/Any.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*
2121
* @see https://neo4j.com/docs/cypher-manual/current/functions/predicate/#functions-any
2222
* @see Func::any()
23-
*
24-
* @internal This class is not covered by the backwards compatibility promise of php-cypher-dsl
2523
*/
2624
final class Any extends Func implements BooleanType
2725
{
@@ -50,6 +48,7 @@ final class Any extends Func implements BooleanType
5048
* @param Variable $variable A variable that can be used from within the predicate
5149
* @param ListType $list A list
5250
* @param AnyType $predicate A predicate that is tested against all items in the list
51+
* @internal This method is not covered by the backwards compatibility guarantee of php-cypher-dsl
5352
*/
5453
public function __construct(Variable $variable, ListType $list, AnyType $predicate)
5554
{

src/Expressions/Functions/Date.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
*
1919
* @see https://neo4j.com/docs/cypher-manual/current/functions/temporal/#functions-date
2020
* @see Func::date()
21-
*
22-
* @internal This class is not covered by the backwards compatibility promise of php-cypher-dsl
2321
*/
2422
final class Date extends Func implements DateType
2523
{
@@ -36,6 +34,7 @@ final class Date extends Func implements DateType
3634
* date(input = DEFAULT_TEMPORAL_ARGUMENT :: ANY?) :: (DATE?)
3735
*
3836
* @param AnyType|null $value The input to the date function, from which to construct the date
37+
* @internal This method is not covered by the backwards compatibility guarantee of php-cypher-dsl
3938
*/
4039
public function __construct(?AnyType $value = null)
4140
{

src/Expressions/Functions/DateTime.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
*
1919
* @see https://neo4j.com/docs/cypher-manual/current/functions/temporal/#functions-datetime
2020
* @see Func::datetime()
21-
*
22-
* @internal This class is not covered by the backwards compatibility promise of php-cypher-dsl
2321
*/
2422
final class DateTime extends Func implements DateTimeType
2523
{
@@ -36,6 +34,7 @@ final class DateTime extends Func implements DateTimeType
3634
* datetime(input = DEFAULT_TEMPORAL_ARGUMENT :: ANY?) :: (DATETIME?)
3735
*
3836
* @param AnyType|null $value The input to the datetime function, from which to construct the datetime
37+
* @internal This method is not covered by the backwards compatibility guarantee of php-cypher-dsl
3938
*/
4039
public function __construct(?AnyType $value = null)
4140
{

src/Expressions/Functions/Exists.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
*
1919
* @see https://neo4j.com/docs/cypher-manual/current/functions/predicate/#functions-exists
2020
* @see Func::exists()
21-
*
22-
* @internal This class is not covered by the backwards compatibility promise of php-cypher-dsl
2321
*/
2422
final class Exists extends Func implements BooleanType
2523
{
@@ -36,6 +34,7 @@ final class Exists extends Func implements BooleanType
3634
* exists(input :: ANY?) :: (BOOLEAN?)
3735
*
3836
* @param AnyType $expression The value to check whether it exists
37+
* @internal This method is not covered by the backwards compatibility guarantee of php-cypher-dsl
3938
*/
4039
public function __construct(AnyType $expression)
4140
{

src/Expressions/Functions/IsEmpty.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
*
2323
* @see https://neo4j.com/docs/cypher-manual/current/functions/predicate/#functions-isempty
2424
* @see Func::isEmpty()
25-
*
26-
* @internal This class is not covered by the backwards compatibility promise of php-cypher-dsl
2725
*/
2826
final class IsEmpty extends Func implements BooleanType
2927
{
@@ -43,6 +41,7 @@ final class IsEmpty extends Func implements BooleanType
4341
* isEmpty(input :: STRING?) :: (BOOLEAN?) - to check whether a string is empty
4442
*
4543
* @param ListType|MapType|StringType $list An expression that returns a list
44+
* @internal This method is not covered by the backwards compatibility promise of php-cypher-dsl
4645
*/
4746
public function __construct(AnyType $list)
4847
{

src/Expressions/Functions/LocalDateTime.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
*
1919
* @see https://neo4j.com/docs/cypher-manual/current/functions/temporal/#functions-localdatetime
2020
* @see Func::localdatetime()
21-
*
22-
* @internal This class is not covered by the backwards compatibility promise of php-cypher-dsl
2321
*/
2422
final class LocalDateTime extends Func implements LocalDateTimeType
2523
{
@@ -36,6 +34,7 @@ final class LocalDateTime extends Func implements LocalDateTimeType
3634
* localdatetime(input = DEFAULT_TEMPORAL_ARGUMENT :: ANY?) :: (LOCALDATETIME?)
3735
*
3836
* @param AnyType|null $value The input to the localdatetime function, from which to construct the localdatetime
37+
* @internal This method is not covered by the backwards compatibility guarantee of php-cypher-dsl
3938
*/
4039
public function __construct(?AnyType $value = null)
4140
{

src/Expressions/Functions/LocalTime.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
*
1919
* @see https://neo4j.com/docs/cypher-manual/current/functions/temporal/#functions-localtime
2020
* @see Func::localtime()
21-
*
22-
* @internal This class is not covered by the backwards compatibility promise of php-cypher-dsl
2321
*/
2422
final class LocalTime extends Func implements LocalTimeType
2523
{
@@ -36,6 +34,7 @@ final class LocalTime extends Func implements LocalTimeType
3634
* localtime(input = DEFAULT_TEMPORAL_ARGUMENT :: ANY?) :: (LOCALTIME?)
3735
*
3836
* @param AnyType|null $value The input to the localtime function, from which to construct the localtime
37+
* @internal This method is not covered by the backwards compatibility guarantee of php-cypher-dsl
3938
*/
4039
public function __construct(?AnyType $value = null)
4140
{

0 commit comments

Comments
 (0)