class \mpf\base\TranslatableObject

class \mpf\base\TranslatableObject

-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-