beforeInit(); $this->zskkInit(); $this->afterInit(); } protected function beforeInit() {} protected function afterInit() {} protected function zskkInit() { $this->beforeSetRequest(); $this->mountRequest(); $this->afterSetRequest(); } protected function setToken($token) { $this->_token = $token; } protected function getToken() { return $this->_token; } protected function setParams($params) { $this->_params = $params; } protected function getParams() { return $this->_params; } protected function getRequest() { return $this->_request; } protected function setRequest($request) { $this->_request = $request; } protected abstract function checkToken(); protected abstract function success($data); protected abstract function mountRequest(); protected abstract function beforeSetRequest(); protected abstract function afterSetRequest(); }