/** * Singleton pattern. Get the instance of the latest created object or create a new one. * @return Hal The instance of this class. */ public static function Instance() { if (self::$instance == null) { self::$instance = new Hal(); } return self::$instance; }