public static function getInstance() { if (null === self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * Creates single for whole application RequestHandler object. * Singleton pattern implementation. * * @return RequestHandler Either existing or new. */ public static function getInstance() { if (!self::$instance) { self::$instance = new RequestHandler(); } return self::$instance; }