(non-PHPdoc)
@see PAGI\Client.IClient::setMusic()
174950
public function setMusic($enable, $class = false)
    {
        $cmd = implode(' ', array('SET', 'MUSIC', $enable ? 'on' : 'off'));
        if ($class !== false) {
            $cmd .= ' "' . $class . '"';
        }
        $this->send($cmd);
    }
260329
public function setNotation(\Innova\CollecticielBundle\Entity\Notation $notation)
    {
        $this->notation = $notation;

        return $this;
    }
202997
def set_music(self, plylst, force=False):
        '''
        
        '''
        plylst = plylst.lower()
        if plylst != self.cur_playlist or force:
            self.cur_playlist = plylst
            self.play_song(self.get_playlist().begin())
715142
public function setExplicit($explicit)
    {
        $explicit = strtolower($explicit);
        if (!in_array($explicit, array('yes', 'no', 'clean'))) {
            /**
             * @see Zend_Feed_Builder_Exception
             */
            require_once 'Zend/Feed/Builder/Exception.php';
            throw new Zend_Feed_Builder_Exception("you have to set yes, no or clean to the itunes explicit property");
        }
        $this->offsetSet('explicit', $explicit);
        return $this;
    }
1326085
public function setBlock($block)
    {
        $block = strtolower($block);
        if (!in_array($block, array('yes', 'no'))) {
            /**
             * @see Zend_Feed_Builder_Exception
             */
            require_once 'Zend/Feed/Builder/Exception.php';
            throw new Zend_Feed_Builder_Exception("you have to set yes or no to the itunes block property");
        }
        $this->offsetSet('block', $block);
        return $this;
    }
387970
def setPlaylistOrder(playlist,tracks)
      method = 'setPlaylistOrder'
      type = Boolean
      args = {:playlist=>playlist,:tracks=>Rdio::keys(tracks)}
      return_object type,method,args,true
    end
321691
public function music($title, $desc, $musicurl, $hgmusicurl = '', $thumbmediaid = '')
    {
        $this->message = [
            'CreateTime'   => time(),
            'MsgType'      => 'music',
            'ToUserName'   => $this->getOpenid(),
            'FromUserName' => $this->getToOpenid(),
            'Music'        => [
                'Title'       => $title,
                'Description' => $desc,
                'MusicUrl'    => $musicurl,
                'HQMusicUrl'  => $hgmusicurl,
            ],
        ];
        if ($thumbmediaid) {
            $this->message['Music']['ThumbMediaId'] = $thumbmediaid;
        }
        return $this;
    }
148805
@Override
    public void setCustomSetString(String setting, Boolean recursive) {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "setCustomSetString (String, Boolean): " + setting);

        setInstrumentationLevel(_createSLSFromString(setting), recursive);

        if (tc.isEntryEnabled())
            Tr.exit(tc, "setCustomSetString");
    }
745710
public function setValue($value)
	{
		if ( ! is_string($value) && ! is_int($value))
		{
			throw new \InvalidArgumentException('A RadioGroup value must be a string or int');
		}

		$this->value = $value;

		// Work out which of our children need to be selected
		foreach ($this->getContents() as $item)
		{
			if ($item->getValue() == $value)
			{
				$item->setChecked(true);
			}
			else
			{
				$item->setChecked(false);
			}
		}

		return $this;
	}
58309
public function sendMusic($openId, $thumbMediaId, $musicUrl, $hqMusicUrl, $title = null, $description = null)
    {
        return $this->sendCustomMessage([
            'touser' => $openId,
            'msgtype' => 'music',
            'music' => [
                'thumb_media_id' => $thumbMediaId,
                'musicurl' => $musicUrl,
                'hqMusicUrl' => $hqMusicUrl,
                'title' => $title,
                'description' => $description
            ]
        ]);
    }
198891
void setPlayingTrack(int playingTrackPosition) {
        if (playingTrackPosition < 0 || playingTrackPosition >= mSoundCloudPlaylist.getTracks().size()) {
            throw new IllegalArgumentException("No tracks a the position " + playingTrackPosition);
        }
        mCurrentTrackIndex = playingTrackPosition;
    }
1300938
private function setSettingsForJs() {
        //check if audio url was set
        if (ArrayHelper::keyExists('fileUrl', $this->settings, false) && !empty($this->settings['fileUrl'])) {
            $this->widgetSettings['fileUrl'] = $this->settings['fileUrl'];
        } else {
            throw new ElementNotFound('fileUrl was not set');
        }
        if (ArrayHelper::keyExists('callbacks', $this->settings, false) && !empty($this->settings['callbacks'])) {
            $this->widgetSettings['callbacks'] = $this->settings['callbacks'];
        }
        $this->widgetSettings['initSettings'] = ArrayHelper::keyExists('init', $this->settings, false) ?  $this->settings['init'] : [];
        $containerName = ArrayHelper::keyExists('container', $this->widgetSettings['initSettings'], false) ? $this->widgetSettings['initSettings']['container'] : $this->getId();
        $this->widgetSettings['initSettings']['container'] = '#' . $containerName;

    }
113002
public function setReceiver( $receiver )
	{
		if( is_string( $receiver ) )
			$receiver	= new Net_XMPP_JID( $receiver );
		$this->receiver	= $receiver;
	}
742487
public function set(array $strs)
    {
        if (!empty($strs)) {
            foreach ($strs as $_str) {
                $this->add($_str);
            }
        }
        return $this;
    }
507477
public function setAudio($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Speech\V1p1beta1\RecognitionAudio::class);
        $this->audio = $var;

        return $this;
    }
807134
public function setGenres($genres)
    {
        if (is_string($genres)) {
            $this->addGenre($genres);
        } elseif (is_array($genres)) {
            $this->genres = array_unique($genres);
        } else {
            throw new \InvalidArgumentException('String or array expected');
        }

        return $this;
    }
913796
public function setChannels($channels)
	{
		if ( ! is_numeric($channels) || $channels < 1)
		{
			throw new \InvalidArgumentException('Wrong audio channels value.');
		}
		
		$this->audioChannels = $channels;
		
		return $this;
	}