src/Response/Directives/AudioPlayer/Play.php
public function toArray()
    {
        $playAsArray['type'] = self::TYPE;
        $playAsArray['audioItem']['stream'] = [];

        $this->addAttributeToArray('playBehavior', $playAsArray);
        $this->addAttributeToArray('url', $playAsArray['audioItem']['stream']);
        $this->addAttributeToArray('token', $playAsArray['audioItem']['stream']);
        $this->addAttributeToArray('offsetInMilliseconds', $playAsArray['audioItem']['stream']);

        if($this->playBehavior == 'ENQUEUE')
        {
            $this->addAttributeToArray('expectedPreviousToken', $playAsArray['audioItem']['stream']);
        }

        return $playAsArray;
    }
public function toArray()
    {
        $playAsArray['type'] = self::TYPE;
        $playAsArray['audioItem']['stream'] = [];

        $this->addAttributeToArray('playBehavior', $playAsArray);
        $this->addAttributeToArray('url', $playAsArray['audioItem']['stream']);
        $this->addAttributeToArray('token', $playAsArray['audioItem']['stream']);
        $this->addAttributeToArray('offsetInMilliseconds', $playAsArray['audioItem']['stream']);

        if($this->playBehavior == 'ENQUEUE')
        {
            $this->addAttributeToArray('expectedPreviousToken', $playAsArray['audioItem']['stream']);
        }

        return $playAsArray;
    }
Get the instance as an array.

@return array