Skip to content

Commit

Permalink
mark FluentNumber methods as internal
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed Nov 5, 2021
1 parent b618259 commit 844eb46
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Bundle/Types/FluentNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public function __construct(
) { }

/**
* @internal
*
* @return $this
*/
public function setLocale(string $locale): self
Expand All @@ -39,11 +41,17 @@ public function setOptions(array $options): self
return $this;
}

/**
* @internal
*/
public function value(): int|float
{
return $this->value;
}

/**
* @internal
*/
public function original(): string
{
if ($this->original !== null) {
Expand All @@ -55,6 +63,9 @@ public function original(): string
: (string) $this->value();
}

/**
* @internal
*/
public function __toString(): string
{
return (new NumberFormatter($this->locale))->format(
Expand Down

0 comments on commit 844eb46

Please sign in to comment.