Get the channels the event should broadcast on.

@return array
162944
public function broadcastOn()
    {
        $channels = $this->notification->broadcastOn();

        if (! empty($channels)) {
            return $channels;
        }

        $channel = 'private-' .$this->channelName();

        return array($channel);
    }
772882
public static function getSubscribedEvents()
    {
        return [
            Events::UPDATE                                                   => ['onUpdate',0],
            Events::STORE                                                    => ['onStore', 0],
            sprintf('%s.%s', Backend::IDENTIFIER, TransactionEvents::STORED) => ['onTransactionStored', 0]
        ];
    }
249806
public function getCasts()
	{
		if ( $this->getIncrementing() )
		{
			return array_merge( [
				$this->getKeyName() => $this->keyType,
			], $this->casts );
		}

		return $this->casts;
	}
219959
public function listPublicNetworkEvents(): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/networks/:owner/:repo/events',
            $this->getActivity()->getOwner(), $this->getActivity()->getRepo()));
    }
36249
public function channels()
    {
        $url = $this->getURL('channels');

        $headers = [
            'body' => [
                'private' => $this->privateKey
            ]
        ];

        $response = $this->processRequest($url, $headers, 'get');

        return $response;
    }
918571
public static function getEventListeners()
    {
        $listeners = array();

        $reflection = new ReflectionClass(get_called_class());
        foreach ($reflection->getMethods(ReflectionMethod::IS_PUBLIC) as $method)
        {
            if(substr($method->name, 0, 2) == 'on') {
               $listeners[] = $method->name;
            }
        }

        return $listeners;
    }
148845
public function getCasts() : array
    {
        $attributes = $this->getTranslatableAttributes();
        $attributes[]  = 'translated';

        return array_merge(
            parent::getCasts(),
            array_fill_keys($attributes, 'json')
        );
    }
964909
public List<ChannelInfo> getChannels() {
    final URI uri = uriWithPath("./channels/");
    return Arrays.asList(this.rt.getForObject(uri, ChannelInfo[].class));
  }
299776
public function getCasts()
    {
        if ($this->getIncrementing()) {
            return array_merge(
                [
                    $this->getKeyName() => $this->getKeyType(),
                ],
                $this->getAttributesFromSchema('cast', true)
            );
        }

        return $this->getAttributesFromSchema('cast', true);
    }
828249
private function getChannelList()
    {
        if (empty($this->channelList)) {
            $response = $this->makeRequest('GET', 'get_rubric_object_list.json', []);
            $this->channelList = $this->deserialize($response->getBody()->getContents(), ChannelList::class);
        }

        return $this->channelList;
    }
73587
public function getChannels()
    {
        $response = $this->channel->addMessage('query/apps', false);
        $xml = simplexml_load_string($response);
        $channels = array();
        foreach($xml->app as $app){
            $app_id = $app->attributes()->id;
            $channels[(string)$app_id] = array(
                'name' => (string)$app,
                'launch_url' => $this->location.'launch/'.(string)$app_id, //url to post to for launching channel
                'icon_url' => $this->location.'query/icon/'.(string)$app_id, //url containing image src for channel icon
            );
        }
        return $channels;
    }
314556
protected function filterCustomCasts()
    {
        $customCasts = [];
        foreach ($this->casts as $attribute => $castClass) {
            if (is_subclass_of($castClass, CustomCastBase::class)) {
                $customCasts[$attribute] = $castClass;
            }
        }

        return $customCasts;
    }
142072
public function getCasts()
    {
        if ($this->getIncrementing()) {
            return array_merge([
                $this->getKeyName() => $this->getKeyType(),
            ], $this->casts);
        }

        return $this->casts;
    }
66124
protected function getEvents()
    {
        $events = [];

        foreach ($this->laravel->getProviders(EventServiceProvider::class) as $provider) {
            $providerEvents = array_merge($provider->discoverEvents(), $provider->listens());

            $events = array_merge_recursive($events, $providerEvents);
        }

        return $events;
    }
871899
public function getChannel()
    {
        if ($this->_oChannel === null) {
            $this->_oChannel = $this->_getRssFeed()->getChannel();
        }

        return $this->_oChannel;
    }
862259
protected function getUserChannels() {
        if (!$this->_userChannels) {
            $this->_userChannels = new UserChannelList(
                $this->version,
                $this->solution['serviceSid'],
                $this->solution['sid']
            );
        }

        return $this->_userChannels;
    }
496956
public function getAttributes(): array
    {
        $attributes = [];
        foreach ($this->wires as $address => $amount) {
            $attributes['wires'][$address] = AdsConverter::clicksToAds($amount);
        }

        return $attributes;
    }