Skip to content

Commit 02e1eb3

Browse files
committed
[Translator] Mark internal classes as internal
1 parent f5e84c5 commit 02e1eb3

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

src/Translator/src/Intl/ErrorKind.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Adapted from https://github.com/formatjs/formatjs/blob/590f1f81b26934c6dc7a55fff938df5436c6f158/packages/icu-messageformat-parser/error.ts#L9-L77.
1616
*
17-
* @experimental
17+
* @internal
1818
*/
1919
final class ErrorKind
2020
{

src/Translator/src/Intl/IntlMessageParser.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
/**
1919
* Adapted from https://github.com/formatjs/formatjs/blob/590f1f81b26934c6dc7a55fff938df5436c6f158/packages/icu-messageformat-parser/parser.ts.
2020
*
21-
* @experimental
21+
* @internal
2222
*/
23-
class IntlMessageParser
23+
final class IntlMessageParser
2424
{
2525
private readonly AbstractString $message;
2626
// Minor optimization, this avoid a lot of calls to `$this->message->length()`
@@ -890,7 +890,7 @@ private function char(): int
890890

891891
$code = $this->message->codePointsAt($offset)[0] ?? null;
892892
if (null === $code) {
893-
throw new \Exception("Offset {$offset} is at invalid UTF-16 code unit boundary");
893+
throw new \Exception("Offset {$offset} is at invalid UTF-16 code unit boundary.");
894894
}
895895

896896
return $code;
@@ -978,7 +978,7 @@ private function bumpUntil(string $pattern): bool
978978
private function bumpTo(int $targetOffset)
979979
{
980980
if ($this->position->offset > $targetOffset) {
981-
throw new \Exception(\sprintf('targetOffset %s must be greater than or equal to the current offset %d', $targetOffset, $this->position->offset));
981+
throw new \Exception(\sprintf('targetOffset "%s" must be greater than or equal to the current offset %d', $targetOffset, $this->position->offset));
982982
}
983983

984984
$targetOffset = min($targetOffset, $this->messageLength);
@@ -988,7 +988,7 @@ private function bumpTo(int $targetOffset)
988988
break;
989989
}
990990
if ($offset > $targetOffset) {
991-
throw new \Exception("targetOffset {$targetOffset} is at invalid UTF-16 code unit boundary");
991+
throw new \Exception("targetOffset {$targetOffset} is at invalid UTF-16 code unit boundary.");
992992
}
993993

994994
$this->bump();

src/Translator/src/Intl/Location.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Adapted from https://github.com/formatjs/formatjs/blob/590f1f81b26934c6dc7a55fff938df5436c6f158/packages/icu-messageformat-parser/types.ts#L58-L61.
1616
*
17-
* @experimental
17+
* @internal
1818
*/
1919
final class Location
2020
{

src/Translator/src/Intl/Position.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Adapted from https://github.com/formatjs/formatjs/blob/590f1f81b26934c6dc7a55fff938df5436c6f158/packages/icu-messageformat-parser/types.ts#L53-L57.
1616
*
17-
* @experimental
17+
* @internal
1818
*/
1919
final class Position
2020
{

src/Translator/src/Intl/SkeletonType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Adapted from https://github.com/formatjs/formatjs/blob/590f1f81b26934c6dc7a55fff938df5436c6f158/packages/icu-messageformat-parser/types.ts#L48-L51.
1616
*
17-
* @experimental
17+
* @internal
1818
*/
1919
final class SkeletonType
2020
{

src/Translator/src/Intl/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Adapted from https://github.com/formatjs/formatjs/blob/590f1f81b26934c6dc7a55fff938df5436c6f158/packages/icu-messageformat-parser/types.ts#L8-L46.
1616
*
17-
* @experimental
17+
* @internal
1818
*/
1919
final class Type
2020
{

src/Translator/src/Intl/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\String\AbstractString;
1515

1616
/**
17-
* @experimental
17+
* @internal
1818
*/
1919
final class Utils
2020
{

src/Translator/src/MessageParameters/Extractor/ExtractorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Hugo Alliaume <[email protected]>
1616
*
17-
* @experimental
17+
* @internal
1818
*/
1919
interface ExtractorInterface
2020
{

src/Translator/src/MessageParameters/Extractor/IntlMessageParametersExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* @author Hugo Alliaume <[email protected]>
1919
*
20-
* @experimental
20+
* @internal
2121
*/
2222
final class IntlMessageParametersExtractor implements ExtractorInterface
2323
{

src/Translator/src/MessageParameters/Extractor/MessageParametersExtractor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Hugo Alliaume <[email protected]>
1616
*
17-
* @experimental
17+
* @internal
1818
*/
1919
final class MessageParametersExtractor implements ExtractorInterface
2020
{

src/Translator/src/MessageParameters/Printer/TypeScriptMessageParametersPrinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* @author Hugo Alliaume <[email protected]>
1616
*
17-
* @experimental
17+
* @internal
1818
*/
1919
final class TypeScriptMessageParametersPrinter
2020
{

0 commit comments

Comments
 (0)