1 | <?php |
||
24 | class Translator |
||
|
|||
25 | { |
||
26 | /** |
||
27 | * The instance. |
||
28 | * |
||
29 | * @var self |
||
30 | */ |
||
31 | private static $instance; |
||
32 | |||
33 | /** |
||
34 | * The factory method that returns the |
||
35 | * instance of class in a singleton way. |
||
36 | * |
||
37 | * @return static |
||
38 | */ |
||
39 | public static function instance() |
||
47 | |||
48 | /** |
||
49 | * Protected facade. |
||
50 | * |
||
51 | * @return Translator |
||
52 | */ |
||
53 | protected static function create() |
||
79 | |||
80 | /** |
||
81 | * This class cannot be instantiated. |
||
82 | */ |
||
83 | private function __construct() |
||
86 | } |
||
87 |