0 follower

Final Class Yiisoft\Yii\Debug\StartupPolicy\Collector\CallableCollectorPolicy

InheritanceYiisoft\Yii\Debug\StartupPolicy\Collector\CallableCollectorPolicy
ImplementsYiisoft\Yii\Debug\StartupPolicy\Collector\CollectorStartupPolicyInterface

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( callable $callable )
$callable callable

                public function __construct(
    callable $callable
) {
    $this->callable = $callable;
}

            
satisfies() public method

public boolean satisfies ( Yiisoft\Yii\Debug\Collector\CollectorInterface $collector, object $event )
$collector Yiisoft\Yii\Debug\Collector\CollectorInterface
$event object

                public function satisfies(CollectorInterface $collector, object $event): bool
{
    return ($this->callable)($collector, $event);
}