JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "Event.php"

Full Path: /var/www/lionsclub/core/vendor/livewire/livewire/src/Event.php
File size: 972 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Livewire;

class Event
{
    protected $name;
    protected $params;
    protected $up;
    protected $self;
    protected $component;

    public function __construct($name, $params)
    {
        $this->name = $name;
        $this->params = $params;
    }

    public function up()
    {
        $this->up = true;

        return $this;
    }

    public function self()
    {
        $this->self = true;

        return $this;
    }

    public function component($name)
    {
        $this->component = $name;

        return $this;
    }

    public function to()
    {
        return $this;
    }

    public function serialize()
    {
        $output = [
            'event' => $this->name,
            'params' => $this->params,
        ];

        if ($this->up) $output['ancestorsOnly'] = true;
        if ($this->self) $output['selfOnly'] = true;
        if ($this->component) $output['to'] = $this->component;

        return $output;
    }
}