Skip to content

Commit 05df642

Browse files
Fix phpdoc QueryBuilder conditions classes. (#583)
1 parent 8bb3cef commit 05df642

19 files changed

Lines changed: 36 additions & 37 deletions

src/QueryBuilder/Condition/Builder/BetweenColumnsConditionBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use function str_contains;
1818

1919
/**
20-
* Class BetweenColumnsConditionBuilder builds objects of {@see BetweenColumnsCondition}.
20+
* Build an object of {@see BetweenColumnsCondition} into SQL expressions.
2121
*/
2222
class BetweenColumnsConditionBuilder implements ExpressionBuilderInterface
2323
{
@@ -43,7 +43,7 @@ public function build(BetweenColumnsConditionInterface $expression, array &$para
4343
}
4444

4545
/**
46-
* Attaches $value to $params array and returns placeholder.
46+
* Attaches `$value` to `$params` array and return placeholder.
4747
*
4848
* @throws Exception
4949
* @throws InvalidArgumentException

src/QueryBuilder/Condition/Builder/BetweenConditionBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use function str_contains;
1717

1818
/**
19-
* Class BetweenConditionBuilder builds objects of {@see BetweenCondition}.
19+
* Build an object of {@see BetweenCondition} into SQL expressions.
2020
*/
2121
class BetweenConditionBuilder implements ExpressionBuilderInterface
2222
{
@@ -49,7 +49,7 @@ public function build(BetweenConditionInterface $expression, array &$params = []
4949
}
5050

5151
/**
52-
* Attaches $value to $params array and returns placeholder.
52+
* Attaches `$value` to `$params` array and return placeholder.
5353
*
5454
* @throws Exception
5555
* @throws InvalidArgumentException

src/QueryBuilder/Condition/Builder/ConjunctionConditionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use function reset;
2222

2323
/**
24-
* Class ConjunctionConditionBuilder builds objects of abstract class {@see AbstractConjunctionCondition}.
24+
* Build an object of {@see AbstractConjunctionCondition} into SQL expressions.
2525
*/
2626
class ConjunctionConditionBuilder implements ExpressionBuilderInterface
2727
{

src/QueryBuilder/Condition/Builder/ExistsConditionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;
1414

1515
/**
16-
* Class ExistsConditionBuilder builds objects of {@see ExistsCondition}.
16+
* Build an object of {@see ExistsCondition} into SQL expressions.
1717
*/
1818
class ExistsConditionBuilder implements ExpressionBuilderInterface
1919
{

src/QueryBuilder/Condition/Builder/HashConditionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use function str_contains;
2222

2323
/**
24-
* Class HashConditionBuilder builds objects of {@see HashCondition}.
24+
* Build an object of {@see HashCondition} into SQL expressions.
2525
*/
2626
class HashConditionBuilder implements ExpressionBuilderInterface
2727
{

src/QueryBuilder/Condition/Builder/InConditionBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
use function strtoupper;
3232

3333
/**
34-
* Class InConditionBuilder builds objects of {@see InCondition}.
34+
* Build an object of {@see InCondition} into SQL expressions.
3535
*/
3636
class InConditionBuilder implements ExpressionBuilderInterface
3737
{
@@ -127,7 +127,7 @@ public function build(InConditionInterface $expression, array &$params = []): st
127127
}
128128

129129
/**
130-
* Builds $values to be used in {@see InCondition}.
130+
* Builds `$values` to be used in {@see InCondition}.
131131
*
132132
* @throws Exception|InvalidArgumentException|InvalidConfigException|NotSupportedException
133133
*
@@ -218,7 +218,7 @@ protected function buildSubqueryInCondition(
218218
}
219219

220220
/**
221-
* Builds a SQL statement for checking the existence of rows with the specified composite column values.
221+
* Builds an SQL statement for checking the existence of rows with the specified composite column values.
222222
*
223223
* @throws Exception
224224
* @throws InvalidConfigException
@@ -272,7 +272,7 @@ protected function buildCompositeInCondition(
272272
}
273273

274274
/**
275-
* Builds is null/is not null condition for column based on operator.
275+
* The Builds are `null/is` not `null` condition for column based on the operator.
276276
*/
277277
protected function getNullCondition(string $operator, string $column): string
278278
{

src/QueryBuilder/Condition/Builder/LikeConditionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use function strtr;
2222

2323
/**
24-
* Class LikeConditionBuilder builds objects of {@see LikeCondition}.
24+
* Build an object of {@see LikeCondition} into SQL expressions.
2525
*/
2626
class LikeConditionBuilder implements ExpressionBuilderInterface
2727
{

src/QueryBuilder/Condition/Builder/NotConditionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Yiisoft\Db\QueryBuilder\QueryBuilderInterface;
1414

1515
/**
16-
* Class NotConditionBuilder builds objects of {@see NotCondition}.
16+
* Build an object of {@see NotCondition} into SQL expressions.
1717
*/
1818
class NotConditionBuilder implements ExpressionBuilderInterface
1919
{

src/QueryBuilder/Condition/Builder/SimpleConditionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use function str_contains;
1717

1818
/**
19-
* Class NotConditionBuilder builds objects of {@see SimpleCondition}.
19+
* Build an object of {@see SimpleCondition} into SQL expressions.
2020
*/
2121
class SimpleConditionBuilder implements ExpressionBuilderInterface
2222
{

src/QueryBuilder/Condition/Interface/BetweenColumnsConditionInterface.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,22 @@
88
use Yiisoft\Db\Expression\ExpressionInterface;
99

1010
/**
11-
* Interface BetweenColumnsConditionInterface represents a condition that is based on the comparison of a column with a
12-
* value.
11+
* Represents a condition which is used to check if a value is between two values.
1312
*/
1413
interface BetweenColumnsConditionInterface extends ConditionInterface
1514
{
1615
/**
17-
* @return ExpressionInterface|string The column name or expression that is an end of the interval.
16+
* @return ExpressionInterface|string The column name or expression that's an end of the interval.
1817
*/
1918
public function getIntervalEndColumn(): string|ExpressionInterface;
2019

2120
/**
22-
* @return ExpressionInterface|string The column name or expression that is a beginning of the interval.
21+
* @return ExpressionInterface|string The column name or expression that's the beginning of the interval.
2322
*/
2423
public function getIntervalStartColumn(): string|ExpressionInterface;
2524

2625
/**
27-
* @return string The operator to use (e.g. `BETWEEN` or `NOT BETWEEN`).
26+
* @return string The operator to use (for example `BETWEEN` or `NOT BETWEEN`).
2827
*/
2928
public function getOperator(): string;
3029

0 commit comments

Comments
 (0)