ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/vendor/laravel/framework/src/Illuminate/Broadcasting/
Upload File :
Current File : //home2/selectio/www/3-idiots/vendor/laravel/framework/src/Illuminate/Broadcasting/Channel.php

<?php

namespace Illuminate\Broadcasting;

use Illuminate\Contracts\Broadcasting\HasBroadcastChannel;

class Channel
{
    /**
     * The channel's name.
     *
     * @var string
     */
    public $name;

    /**
     * Create a new channel instance.
     *
     * @param  \Illuminate\Contracts\Broadcasting\HasBroadcastChannel|string  $name
     * @return void
     */
    public function __construct($name)
    {
        $this->name = $name instanceof HasBroadcastChannel ? $name->broadcastChannel() : $name;
    }

    /**
     * Convert the channel instance to a string.
     *
     * @return string
     */
    public function __toString()
    {
        return $this->name;
    }
}

Zerion Mini Shell 1.0