404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.141.38.5: ~ $
<?php declare(strict_types=1);

/*
 * This file is part of Evenement.
 *
 * (c) Igor Wiedler <igor@wiedler.ch>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Evenement\Tests;

class Listener
{
    private $data = [];

    private $magicData = [];

    private static $staticData = [];

    public function onFoo($data)
    {
        $this->data[] = $data;
    }

    public function __invoke($data)
    {
        $this->magicData[] = $data;
    }

    public static function onBar($data)
    {
        self::$staticData[] = $data;
    }

    public function getData()
    {
        return $this->data;
    }

    public function getMagicData()
    {
        return $this->magicData;
    }

    public static function getStaticData()
    {
        return self::$staticData;
    }
}

Filemanager

Name Type Size Permission Actions
EventEmitterTest.php File 12.41 KB 0644
Listener.php File 879 B 0644
functions.php File 367 B 0644