Class LocalizedString
- Commercetools\Core\Model\Common\LocalizedString implements JsonSerializable, Commercetools\Core\Model\Common\JsonDeserializeInterface uses Commercetools\Core\Model\Common\ContextTrait
Namespace: Commercetools\Core\Model\Common
API documentation: https://docs.commercetools.com/http-api-types.html#localizedstring
Example: LocalizedString::fromArray(['en' => 'Hello World', 'de' => 'Hallo Welt'])->add('fr', 'Bonjour le monde');
Located at Core/Model/Common/LocalizedString.php
API documentation: https://docs.commercetools.com/http-api-types.html#localizedstring
Example: LocalizedString::fromArray(['en' => 'Hello World', 'de' => 'Hallo Welt'])->add('fr', 'Bonjour le monde');
Located at Core/Model/Common/LocalizedString.php
Methods summary
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public static
|
|
public static
|
|
public static
|
#
ofLangAndText( string $language, string $text,
|
Methods inherited from Commercetools\Core\Model\Common\ContextAwareInterface
getContext()
,
getContextCallback()
,
setContext()
,
setContextIfNull()