private function generateMessageBody($from, $number, $composeMessage)
    {
        $aux = [
            'from'           => $from,
            'to'             => $number['number'],
            'msg'            => $composeMessage,
            'callbackOption' => $this->callbackOption,
        ];

        if (!is_null($number['carrier'])) {
            $aux['id'] = $number['carrier'];
        }

        return $aux;
    }
private function generateMessageBody($from, $number, $composeMessage)
    {
        $aux = [
            'from'           => $from,
            'to'             => $number['number'],
            'msg'            => $composeMessage,
            'callbackOption' => $this->callbackOption,
        ];

        if (!is_null($number['carrier'])) {
            $aux['id'] = $number['carrier'];
        }

        return $aux;
    }
private function generateMessageBody ( $ from , $ number , $ composeMessage ) { $ aux = [ 'from' => $ from , 'to' => $ number [ 'number' ] , 'msg' => $ composeMessage , 'callbackOption' => $ this -> callbackOption , ] ; if ( ! is_null ( $ number [ 'carrier' ] ) ) { $ aux [ 'id' ] = $ number [ 'carrier' ] ; } return $ aux ; }
Message body generator based on the attributes.

@param $from
@param $number
@param $composeMessage

@return array
Message body generator based on the attributes .