| 1 | <?php |
||
| 23 | class Translator |
||
|
|
|||
| 24 | { |
||
| 25 | /** |
||
| 26 | * The instance. |
||
| 27 | * |
||
| 28 | * @var self |
||
| 29 | */ |
||
| 30 | private static $instance; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * The factory method that returns the |
||
| 34 | * instance of class in a singleton way. |
||
| 35 | * |
||
| 36 | * @return static |
||
| 37 | */ |
||
| 38 | public static function instance() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Protected facade. |
||
| 49 | * |
||
| 50 | * @return Translator |
||
| 51 | */ |
||
| 52 | protected function create() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * This class cannot be instantiated. |
||
| 73 | */ |
||
| 74 | private function __construct() |
||
| 77 | } |
||
| 78 |