Skip to content

Commit 9ef43e0

Browse files
committed
Remove useless constructor comment
1 parent 842f7da commit 9ef43e0

21 files changed

+0
-51
lines changed

src/Aggregate.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ class Aggregate implements Builder
7373
/** @var null|string */
7474
private $filter;
7575

76-
/**
77-
* Aggregate constructor.
78-
*/
7976
public function __construct(Client $redis)
8077
{
8178
$this->redis = $redis;

src/Aggregate/Exception/UnknownSortDirectionException.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
class UnknownSortDirectionException extends UnexpectedValueException
3030
{
3131
/**
32-
* UnknownSortDirectionException constructor.
33-
*
3432
* @param array<string> $directions
3533
*/
3634
public function __construct(array $directions, int $code = 0, ?Throwable $previous = null)

src/Aggregate/GroupBy.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ class GroupBy implements PartialQuery
3838
private $reducers = [];
3939

4040
/**
41-
* GroupBy constructor.
42-
*
4341
* @param array<string> $properties
4442
* @param array<Reducer> $reducers
4543
*

src/Aggregate/Reducer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ class Reducer implements PartialQuery
3939
private $name;
4040

4141
/**
42-
* Reducer constructor.
43-
*
4442
* @param array<float|int|string> $arguments
4543
*
4644
* @throws Throwable

src/Aggregate/Result.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class Result
3030
private $fields = [];
3131

3232
/**
33-
* Result constructor.
34-
*
3533
* @param array<string,null|float|int|string> $fields
3634
*
3735
* @throws Throwable

src/Aggregate/SortBy.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ class SortBy implements \MacFJA\RediSearch\PartialQuery
5050
private $max;
5151

5252
/**
53-
* SortBy constructor.
54-
*
5553
* @psalm-param array<string,"ASC"|"DESC"> $properties
5654
* @phpstab-param array<string,"ASC"|"DESC"> $properties
5755
*

src/Index.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ class Index
4343
/** @var Client */
4444
private $redis;
4545

46-
/**
47-
* Index constructor.
48-
*/
4946
public function __construct(string $indexKey, Client $redis)
5047
{
5148
$this->indexKey = $indexKey;

src/Index/Builder.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ class Builder implements \MacFJA\RediSearch\Builder
114114
/** @var bool */
115115
private $skipInitialScan = false;
116116

117-
/**
118-
* Builder constructor.
119-
*/
120117
public function __construct(Client $redis)
121118
{
122119
$this->redis = $redis;

src/Index/Builder/TextField.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ class TextField extends AbstractField
3434
/** @var null|string */
3535
private $phonetic;
3636

37-
/**
38-
* TextField constructor.
39-
*/
4037
public function __construct(string $name, bool $noStem = false, ?float $weight = null, ?string $phonetic = null, bool $sortable = false, bool $noIndex = false)
4138
{
4239
parent::__construct($name, $sortable, $noIndex);

src/Index/InfoResult.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ class InfoResult
8181
private $stopWords;
8282

8383
/**
84-
* InfoResult constructor.
85-
*
8684
* @param array<string> $indexOptions
8785
* @param array<array<string>|string> $definition
8886
* @param array<mixed> $fields

src/Search/GeoFilter.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ class GeoFilter implements PartialQuery
5151
/** @var string */
5252
private $unit;
5353

54-
/**
55-
* GeoFilter constructor.
56-
*/
5754
public function __construct(string $fieldName, float $lon, float $lat, int $radius, string $unit)
5855
{
5956
DataHelper::assert(

src/Search/Highlight.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ class Highlight implements \MacFJA\RediSearch\PartialQuery
3737
private $closeTag;
3838

3939
/**
40-
* Highlight constructor.
41-
*
4240
* @param array<string> $fields
4341
*/
4442
public function __construct(array $fields = [], ?string $openTag = null, ?string $closeTag = null)

src/Search/QueryBuilder.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ class QueryBuilder
4141
/** @var array<QueryBuilder> */
4242
private $queryBuilders = [];
4343

44-
/**
45-
* QueryBuilder constructor.
46-
*/
4744
private function __construct(bool $isOrGroup)
4845
{
4946
if (true === $isOrGroup) {

src/Search/QueryBuilder/GeoFacet.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ class GeoFacet implements PartialQuery
4444
/** @var string */
4545
private $unit;
4646

47-
/**
48-
* GeoFilter constructor.
49-
*/
5047
public function __construct(string $fieldName, float $lon, float $lat, int $radius, string $unit)
5148
{
5249
DataHelper::assert(

src/Search/QueryBuilder/NumericFacet.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ class NumericFacet implements PartialQuery
4141
/** @var bool */
4242
private $isMinInclusive;
4343

44-
/**
45-
* NumericFacet constructor.
46-
*/
4744
public function __construct(string $fieldName, ?float $min, ?float $max, bool $isMinInclusive = true, bool $isMaxInclusive = true)
4845
{
4946
$this->fieldName = $fieldName;

src/Search/QueryBuilder/Word.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class Word implements PartialQuery
3030
private $words = [];
3131

3232
/**
33-
* Word constructor.
34-
*
3533
* @param string ...$words
3634
*/
3735
public function __construct(string ...$words)

src/Search/Result.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ class Result
4242
private $sortKey;
4343

4444
/**
45-
* Result constructor.
46-
*
4745
* @param array<string,bool|float|int|string> $fields
4846
*/
4947
public function __construct(string $hash, array $fields = [], ?float $score = null, ?string $payload = null, ?string $sortKey = null)

src/Search/Summarize.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ class Summarize implements \MacFJA\RediSearch\PartialQuery
3939
private $separator;
4040

4141
/**
42-
* Summarize constructor.
43-
*
4442
* @param array<string> $fields
4543
* @param array<string> $fragments
4644
*/

src/Suggestions.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ class Suggestions
4848
/** @var Client */
4949
private $redis;
5050

51-
/**
52-
* Suggestions constructor.
53-
*/
5451
public function __construct(string $dictionaryKey, Client $redis)
5552
{
5653
$this->dictionaryKey = $dictionaryKey;

src/Words/SpellingResult.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ class SpellingResult
3939
private $suggestions = [];
4040

4141
/**
42-
* SpellingResult constructor.
43-
*
4442
* @param array<string, float> $suggestions
4543
*
4644
* @throws Throwable

src/Words/SynonymResult.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ class SynonymResult
3232
private $synonyms = [];
3333

3434
/**
35-
* SynonymResult constructor.
36-
*
3735
* @param array<string> $synonyms
3836
*/
3937
public function __construct(string $for, array $synonyms)

0 commit comments

Comments
 (0)