for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Arp\EventDispatcher\Event;
/**
* @author Alex Patterson <[email protected]>
* @package Arp\EventDispatcher\Event
*/
abstract class AbstractEvent implements ParametersAwareInterface
{
use ParametersAwareTrait;
* @param ParametersInterface<mixed>|array<mixed>|mixed $params
public function __construct($params = [])
if (!$params instanceof ParametersInterface) {
$params = new Parameters(is_array($params) ? $params : []);
is_array($params)
true
}
$this->setParameters($params);