Exemple #1
0
 /**
  * @return array|mixed|null
  */
 private function getSessionData()
 {
     $data = $this->alexa->session();
     if ($this->isPrompt()) {
         $data['possible_prompt_response'] = true;
         if ($this->promptResponseIntent) {
             $data['prompt_response_intent'] = $this->promptResponseIntent;
         }
         if ($this->speech) {
             $data['original_prompt'] = $this->speech->getValue();
         }
         if ($this->alexa->requestType() === 'IntentRequest') {
             $data['original_prompt_intent'] = $this->alexa->request()->getIntent();
         }
     }
     return $data;
 }