/** * Returns an instance of class (singleton pattern implementation). * * @return OW_Response */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * Returns global response object. * * @return OW_Response */ public static function getResponse() { return OW_Response::getInstance(); }