rector/vendor/evenement/evenement/tests/Evenement/Tests/Listener.php
Tomas Votruba aae549741f Updated Rector to commit 0cb3fd0feb464b4568e07607a05c794637aa2862
0cb3fd0feb [Php73] Handle crash Type Error on JsonThrowOnErrorRector (#4626)
2023-08-01 10:55:14 +00:00

44 lines
890 B
PHP

<?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 RectorPrefix202308\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;
}
}