protected function setState($state)
    {
        $serviceService = $this->getServiceLocator()->get(StateStorage::SERVICE_ID);
        $userUri = $this->getSession()->getUserUri();
        return is_null($userUri) ? false : $serviceService->set($userUri, $this->getServiceCallId(), $state);
    }
protected function setState($state)
    {
        $serviceService = $this->getServiceLocator()->get(StateStorage::SERVICE_ID);
        $userUri = $this->getSession()->getUserUri();
        return is_null($userUri) ? false : $serviceService->set($userUri, $this->getServiceCallId(), $state);
    }
protected function setState ( $ state ) { $ serviceService = $ this -> getServiceLocator ( ) -> get ( StateStorage :: SERVICE_ID ) ; $ userUri = $ this -> getSession ( ) -> getUserUri ( ) ; return is_null ( $ userUri ) ? false : $ serviceService -> set ( $ userUri , $ this -> getServiceCallId ( ) , $ state ) ; }
Stores the state of the current service call

@param string $state
@return boolean
Stores the state of the current service call