for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Valkyrja Framework package.
*
* (c) Melech Mizrachi <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Valkyrja\Event;
use Valkyrja\Event\Data\Contract\Listener;
/**
* Class Data.
* @author Melech Mizrachi
class Data
{
* The listeners.
* @param array<class-string, string[]> $events
array<class-string, string[]>
2
* @param array<string, Listener|string> $listeners
public function __construct(
public array $events = [],
public array $listeners = [],
) {
}