for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thruster\Component\EventEmitter;
/**
* Class Event
*
* @package Thruster\Component\EventEmitter
* @author Aurimas Niekis <[email protected]>
*/
class Event implements EventInterface
{
* @var bool Whether no further event listeners should be triggered
protected $propagationStopped;
* @var array
protected $params;
* @param array $params
public function __construct(array $params = [])
$this->propagationStopped = false;
$this->params = $params;
}
* {@inheritdoc}
public function isPropagationStopped() : bool
return $this->propagationStopped;
public function stopPropagation()
$this->propagationStopped = true;
public function getParams() : array
return $this->params;