for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CultuurNet\UDB3\EventListener;
use ValueObjects\StringLiteral\StringLiteral;
class ClassNameEventSpecification implements EventSpecification
{
private $classNames;
public function __construct(StringLiteral ...$classNames)
$this->classNames = $classNames;
}
/**
* @inheritdoc
*/
public function matches($event)
foreach ($this->classNames as $className) {
if (get_class($event) === $className->toNative()) {
return true;
return false;