for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace League\OAuth2\Server\EventEmitting;
use League\Event\HasEventName;
use Psr\EventDispatcher\StoppableEventInterface;
class AbstractEvent implements StoppableEventInterface, HasEventName
{
/**
* @var string
*/
private $name;
private $propagationStopped = false;
public function __construct(string $name)
$this->name = $name;
}
public function eventName(): string
return $this->name;
* Backwards compatibility method
*
* @deprecated use eventName instead
public function getName(): string
public function isPropagationStopped(): bool
return $this->propagationStopped;
public function stopPropagation(): self
$this->propagationStopped = true;
return $this;