0 follower

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

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

Psalm Types

Name Value
TCallable callable

Method Details

Hide inherited methods

__construct() public method

public __construct( callable $callable ): mixed
$callable callable

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

            
satisfies() public method

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

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