/** * Singleton method used to access the object * * @access public * @static * @staticvar Singleton $instance The Singleton instances of this class. * @return */ public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }