value = $value; } /** * To int. * * @since 0.1.0 */ public function to_int(): int { return $this->value; } /** * Equals. * * @param self $other Parameter. * @since 0.1.0 */ public function equals( self $other ): bool { return $this->value === $other->value; } /** * String cast. * * @since 0.1.0 */ public function __toString(): string { return (string) $this->value; } }