trait \mpf\base\TranslatableObjectTrait

trait \mpf\base\TranslatableObjectTrait

Inheritance -
Implements -
Uses -
Childs -
Available since version  0.1
Source Code https://github.com/mpf-soft/mpf/tree/master/base/TranslatableObjectTrait.php

-no description found-

Attributes
private \mpf\translators\Interface; $_translator

-no description found-

public string $translator = "\mpf\translators\None"

-no description found-

Methods

public mixed setTranslator (string $class)

  • $class

    -no description found-

Set a new translator. Can be sent as class name or class instance;

public \mpf\interfaces\TranslatorInterface getTranslator ()

Return instance to translator

public mixed translate (mixed $text)

  • $text

    -no description found-

-no description found-