Final Class Yiisoft\Yii\Debug\StartupPolicy\Collector\BlackListCollectorPolicy
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| satisfies() | Yiisoft\ |
Method Details
| public mixed __construct ( array $conditions ) | ||
| $conditions | array | |
public function __construct(
/**
* @var ConditionInterface[]
* @psalm-var array<string, ConditionInterface>
*/
private readonly array $conditions,
) {}
| public boolean satisfies ( Yiisoft\ | ||
| $collector | Yiisoft\ |
|
| $event | object | |
public function satisfies(CollectorInterface $collector, object $event): bool
{
$condition = $this->conditions[$collector->getName()] ?? null;
if ($condition === null) {
return true;
}
return !$condition->match($event);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.