Skip to content

Commit 29247c6

Browse files
committed
Mark builder classes as final and internal
1 parent 67b3064 commit 29247c6

File tree

284 files changed

+588
-289
lines changed

Some content is hidden

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

284 files changed

+588
-289
lines changed

generator/src/OperatorClassGenerator.php

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function createClass(GeneratorDefinition $definition, OperatorDefinition
5050
}
5151

5252
$class = $namespace->addClass($this->getOperatorClassName($definition, $operator));
53+
$class->setFinal();
5354
$class->setImplements($interfaces);
5455
$namespace->addUse(OperatorInterface::class);
5556
$class->addImplement(OperatorInterface::class);
@@ -58,6 +59,7 @@ public function createClass(GeneratorDefinition $definition, OperatorDefinition
5859
// @todo move to encoder class
5960
$class->addComment($operator->description);
6061
$class->addComment('@see ' . $operator->link);
62+
$class->addComment('@internal');
6163
$namespace->addUse(Encode::class);
6264
$class->addConstant('ENCODE', new Literal('Encode::' . $operator->encode->name));
6365

src/Builder/Accumulator/AccumulatorAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/AddToSetAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/AvgAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/BottomAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/BottomNAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/CountAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/CovariancePopAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/CovarianceSampAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/DenseRankAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/DerivativeAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/DocumentNumberAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/ExpMovingAvgAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/FirstAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/FirstNAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/IntegralAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/LastAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/LastNAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/LinearFillAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/LocfAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/MaxAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/MaxNAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/MedianAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/MergeObjectsAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/MinAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/MinNAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/PercentileAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/PushAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/RankAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/ShiftAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/StdDevPopAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/StdDevSampAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/SumAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/TopAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/TopNAccumulator.php

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/BuilderEncoder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
use function is_object;
3333

3434
/** @template-implements Encoder<stdClass|array|string|int, Pipeline|StageInterface|ExpressionInterface|QueryInterface> */
35-
class BuilderEncoder implements Encoder
35+
final class BuilderEncoder implements Encoder
3636
{
3737
/** @template-use EncodeIfSupported<stdClass|array|string|int, Pipeline|StageInterface|ExpressionInterface|QueryInterface> */
3838
use EncodeIfSupported;

0 commit comments

Comments
 (0)