public function getChoices($interaction)
    {
        $return = [];
        if (isset($interaction['choices'])) {
            $i = 1;
            foreach ($interaction['choices'] as $identifier => $choice) {
                $return['choice_identifier_' . $i] = $identifier;
                $return['choice_label_' . $i] = ($choice) ?: '';
                $i++;
            }
            if ($this->headerChoice > count($return)) {
                while ($this->headerChoice > count($return)) {
                    $return['choice_identifier_' . $i] = '';
                    $return['choice_label_' . $i] = '';
                    $i++;
                }
            } else {
                $this->headerChoice = count($return);
            }
        }
        return $return;
    }
public function getChoices($interaction)
    {
        $return = [];
        if (isset($interaction['choices'])) {
            $i = 1;
            foreach ($interaction['choices'] as $identifier => $choice) {
                $return['choice_identifier_' . $i] = $identifier;
                $return['choice_label_' . $i] = ($choice) ?: '';
                $i++;
            }
            if ($this->headerChoice > count($return)) {
                while ($this->headerChoice > count($return)) {
                    $return['choice_identifier_' . $i] = '';
                    $return['choice_label_' . $i] = '';
                    $i++;
                }
            } else {
                $this->headerChoice = count($return);
            }
        }
        return $return;
    }
public function getChoices ( $ interaction ) { $ return = [ ] ; if ( isset ( $ interaction [ 'choices' ] ) ) { $ i = 1 ; foreach ( $ interaction [ 'choices' ] as $ identifier => $ choice ) { $ return [ 'choice_identifier_' . $ i ] = $ identifier ; $ return [ 'choice_label_' . $ i ] = ( $ choice ) ? : '' ; $ i ++ ; } if ( $ this -> headerChoice > count ( $ return ) ) { while ( $ this -> headerChoice > count ( $ return ) ) { $ return [ 'choice_identifier_' . $ i ] = '' ; $ return [ 'choice_label_' . $ i ] = '' ; $ i ++ ; } } else { $ this -> headerChoice = count ( $ return ) ; } } return $ return ; }
Callback to retrieve all choices
Add dynamic column to have same columns number as other

@param $interaction
@return array
Callback to retrieve all choices Add dynamic column to have same columns number as other