Skip to content

Commit 3e0eb01

Browse files
Mark init() DocBlocks for internal use (#1047)
Co-authored-by: Markus Kalkbrenner <git@kalki.de>
1 parent 562f574 commit 3e0eb01

20 files changed

Lines changed: 41 additions & 34 deletions

File tree

src/Component/DistributedSearch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,8 @@ public function getReplicas(): array
377377
/**
378378
* Initialize options.
379379
*
380-
* Several options need some extra checks or setup work, for these options
381-
* the setters are called.
380+
* {@internal Several options need some extra checks or setup work,
381+
* for these options the setters are called.}
382382
*/
383383
protected function init()
384384
{

src/Component/Facet/AbstractRange.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ public function getPivot()
290290
/**
291291
* Initialize options.
292292
*
293-
* Several options need some extra checks or setup work, for these options
294-
* the setters are called.
293+
* {@internal Several options need some extra checks or setup work,
294+
* for these options the setters are called.}
295295
*/
296296
protected function init()
297297
{

src/Component/Facet/Interval.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public function getSet(): array
9292
/**
9393
* Initialize options.
9494
*
95-
* Several options need some extra checks or setup work, for these options
96-
* the setters are called.
95+
* {@internal Several options need some extra checks or setup work,
96+
* for these options the setters are called.}
9797
*/
9898
protected function init()
9999
{

src/Component/Facet/JsonRange.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function getType(): string
3535
/**
3636
* Initialize options.
3737
*
38-
* Several options need some extra checks or setup work, for these options
39-
* the setters are called.
38+
* {@internal Both the parent's and JsonFacetTrait's init() are needed
39+
* to properly initialize all options.}
4040
*/
4141
protected function init()
4242
{

src/Component/Facet/MultiQuery.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ public function clearExcludes(): AbstractFacet
279279
/**
280280
* Initialize options.
281281
*
282-
* Several options need some extra checks or setup work, for these options
283-
* the setters are called.
282+
* {@internal The 'query' option needs additional setup work.}
284283
*/
285284
protected function init()
286285
{

src/Component/Facet/Pivot.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,9 @@ public function setStats(array $stats): self
405405

406406
/**
407407
* Initialize options.
408+
*
409+
* {@internal Options that set a list of fields need additional setup work
410+
* because they can be an array or a comma separated string.}
408411
*/
409412
protected function init()
410413
{

src/Component/Facet/Range.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public function getMinCount(): ?int
5555
/**
5656
* Initialize options.
5757
*
58-
* Several options need some extra checks or setup work, for these options
59-
* the setters are called.
58+
* {@internal Several options need some extra checks or setup work,
59+
* for these options the setters are called.}
6060
*/
6161
protected function init()
6262
{

src/Component/FacetSetTrait.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,7 @@ public function createFacet(string $type, $options = null, bool $add = true): Fa
196196
/**
197197
* Initialize options.
198198
*
199-
* Several options need some extra checks or setup work, for these options
200-
* the setters are called.
199+
* {@internal The 'facet' option needs additional setup work.}
201200
*/
202201
protected function init()
203202
{

src/Component/Grouping.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,9 @@ public function getResultValueGroupClass(): ?string
571571
/**
572572
* Initialize options.
573573
*
574-
* Several options need some extra checks or setup work, for these options
575-
* the setters are called.
574+
* {@internal The 'query' option needs additional setup work.
575+
* Options that set a list of fields need additional setup work
576+
* because they can be an array or a comma separated string.}
576577
*/
577578
protected function init()
578579
{

src/Component/Highlighting/Highlighting.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ public function getQueryFieldPattern(): ?array
280280
/**
281281
* Initialize options.
282282
*
283-
* Options that can be an array or string with fieldnames need work.
283+
* {@internal Options that set a list of fields need additional setup work
284+
* because they can be an array or a comma separated string.}
284285
*/
285286
protected function init()
286287
{

0 commit comments

Comments
 (0)