| 1 | <?php |
||
| 12 | class Translator |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Translator instance |
||
| 16 | * |
||
| 17 | * @access private |
||
| 18 | * @static |
||
| 19 | * @var Translator |
||
| 20 | */ |
||
| 21 | private static $_instance; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The MoTranslator loader object. |
||
| 25 | * |
||
| 26 | * @var MoTranslator\Loader |
||
| 27 | */ |
||
| 28 | private $loader; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The MoTranslator translator object. |
||
| 32 | * |
||
| 33 | * @var MoTranslator\Translator |
||
| 34 | */ |
||
| 35 | private $translator; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Constructor. |
||
| 39 | */ |
||
| 40 | public function __construct() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Translates a string |
||
| 62 | * |
||
| 63 | * @param string $msgid String to be translated |
||
| 64 | * |
||
| 65 | * @return string translated string (or original, if not found) |
||
| 66 | */ |
||
| 67 | public function gettext($msgid) |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Returns the singleton Translator object |
||
| 74 | * |
||
| 75 | * @return Translator object |
||
| 76 | */ |
||
| 77 | public static function getInstance() |
||
| 84 | } |
||
| 85 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.