ICanBoogie
  • Documentation
  • API Reference
  • I18n 3.0.x
Namespaces
  • ICanBoogie
    • Binding
      • I18n
    • I18n
      • Translator
Classes
  • FormattedString
  • Helpers
  • Hooks
  • Translator

Class FormattedString

A formatted string.

The string is formatted by replacing placeholders with the values provided.

Direct known subclasses

ICanBoogie\FormattedString

Namespace: ICanBoogie\I18n
Located at I18n/FormattedString.php

Methods summary

public __construct( string $format, array $args = null, array $options = [] )

Initializes the ICanBoogie\I18n\FormattedString::$format, ICanBoogie\I18n\FormattedString::$args and ICanBoogie\I18n\FormattedString::$options properties.

Initializes the ICanBoogie\I18n\FormattedString::$format, ICanBoogie\I18n\FormattedString::$args and ICanBoogie\I18n\FormattedString::$options properties.

Parameters

$format
String format.
$args
Format arguments.
$options
I18n options.
public __get( $property )
public __toString( void ) : string

Returns the string formatted with the ICanBoogie\I18n\FormattedString::$format function.

Returns the string formatted with the ICanBoogie\I18n\FormattedString::$format function.

Returns

string

Properties summary

protected $format

		
protected $args

		
protected $options

		

Magic properties

public read-only $format : string

String format.

public read-only $args : array

Format arguments.

public read-only $options : array

I18n options.

I18n 3.0.x – Check on GitHub – API documentation generated by ApiGen