protected function isValidBroadcastType($broadcastType)
    {
        $validBroadcastTypes = ['archive', 'highlight', 'upload'];

        $broadcastTypeArray = explode(',', $broadcastType);
        foreach ($broadcastTypeArray as $type) {
            if (!in_array($type, $validBroadcastTypes)) {
                return false;
            }
        }

        return true;
    }
protected function isValidBroadcastType($broadcastType)
    {
        $validBroadcastTypes = ['archive', 'highlight', 'upload'];

        $broadcastTypeArray = explode(',', $broadcastType);
        foreach ($broadcastTypeArray as $type) {
            if (!in_array($type, $validBroadcastTypes)) {
                return false;
            }
        }

        return true;
    }
protected function isValidBroadcastType ( $ broadcastType ) { $ validBroadcastTypes = [ 'archive' , 'highlight' , 'upload' ] ; $ broadcastTypeArray = explode ( ',' , $ broadcastType ) ; foreach ( $ broadcastTypeArray as $ type ) { if ( ! in_array ( $ type , $ validBroadcastTypes ) ) { return false ; } } return true ; }
Return true if the provided broadcast type is valid

@param string $broadcastType
@return bool
Return true if the provided broadcast type is valid