Skip to content

Commit 9fc0d42

Browse files
authored
Mark builder classes as final and internal (#1542)
1 parent 2106092 commit 9fc0d42

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

Lines changed: 2 additions & 0 deletions
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

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/AddToSetAccumulator.php

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/AvgAccumulator.php

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/BottomAccumulator.php

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/BottomNAccumulator.php

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/CountAccumulator.php

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/CovariancePopAccumulator.php

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/CovarianceSampAccumulator.php

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Builder/Accumulator/DenseRankAccumulator.php

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)