for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace EventIO\InterOp;
/**
* Trait EventTrait
* @package EventIO\InterOp
*/
trait EventTrait
{
* @var string
private $name;
* @var boolean
private $propagationStopped = false;
* The name of the event
* @return string
public function name()
return $this->name;
}
* Check whether propagation was stopped.
*
* @return bool
public function isPropagationStopped(): bool
return ($this->propagationStopped);
* @return self
public function stopPropagation(): self
$this->propagationStopped = true;
return $this;