Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace BeyondCode\LaravelWebSockets\Events; use Illuminate\Foundation\Events\Di..

Decoded Output download

<?php

namespace BeyondCode\LaravelWebSockets\Events;

use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use stdClass;

class UnsubscribedFromChannel
{
    use Dispatchable, SerializesModels;

    /**
     * The WebSockets app id that the user connected to.
     *
     * @var string
     */
    public $appId;

    /**
     * The Socket ID associated with the connection.
     *
     * @var string
     */
    public $socketId;

    /**
     * The channel name.
     *
     * @var string
     */
    public $channelName;

    /**
     * The user received on presence channel.
     *
     * @var string
     */
    public $user;

    /**
     * Create a new event instance.
     *
     * @param  string  $appId
     * @param  string  $socketId
     * @param  string  $channelName
     * @param  stdClass|null  $user
     * @return void
     */
    public function __construct(string $appId, string $socketId, string $channelName, ?stdClass $user = null)
    {
        $this->appId = $appId;
        $this->socketId = $socketId;
        $this->channelName = $channelName;
        $this->user = $user;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace BeyondCode\LaravelWebSockets\Events;

use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use stdClass;

class UnsubscribedFromChannel
{
    use Dispatchable, SerializesModels;

    /**
     * The WebSockets app id that the user connected to.
     *
     * @var string
     */
    public $appId;

    /**
     * The Socket ID associated with the connection.
     *
     * @var string
     */
    public $socketId;

    /**
     * The channel name.
     *
     * @var string
     */
    public $channelName;

    /**
     * The user received on presence channel.
     *
     * @var string
     */
    public $user;

    /**
     * Create a new event instance.
     *
     * @param  string  $appId
     * @param  string  $socketId
     * @param  string  $channelName
     * @param  stdClass|null  $user
     * @return void
     */
    public function __construct(string $appId, string $socketId, string $channelName, ?stdClass $user = null)
    {
        $this->appId = $appId;
        $this->socketId = $socketId;
        $this->channelName = $channelName;
        $this->user = $user;
    }
}

Function Calls

None

Variables

None

Stats

MD5 c1692ee28b90148e6b6b65c38a2fb5a8
Eval Count 0
Decode Time 111 ms