public function archive($userId, $callId)
    {

        /** @var StateStorage $stateStorage */
        $stateStorage = $this->getServiceManager()->get(StateStorage::SERVICE_ID);

        $state = $stateStorage->get($userId, $callId);

        return (!is_null($state)) ? $this->getFileSystem()->write($this->generateSerial($userId, $callId), $state) : false;
    }
public function archive($userId, $callId)
    {

        /** @var StateStorage $stateStorage */
        $stateStorage = $this->getServiceManager()->get(StateStorage::SERVICE_ID);

        $state = $stateStorage->get($userId, $callId);

        return (!is_null($state)) ? $this->getFileSystem()->write($this->generateSerial($userId, $callId), $state) : false;
    }
public function archive ( $ userId , $ callId ) { /** @var StateStorage $stateStorage */ $ stateStorage = $ this -> getServiceManager ( ) -> get ( StateStorage :: SERVICE_ID ) ; $ state = $ stateStorage -> get ( $ userId , $ callId ) ; return ( ! is_null ( $ state ) ) ? $ this -> getFileSystem ( ) -> write ( $ this -> generateSerial ( $ userId , $ callId ) , $ state ) : false ; }
Store the state of the service call

@param string $userId
@param string $callId
@return boolean
Store the state of the service call