Final Class Yiisoft\Yii\Debug\StartupPolicy\Collector\CallableCollectorPolicy
| Inheritance | Yiisoft\Yii\Debug\StartupPolicy\Collector\CallableCollectorPolicy |
|---|---|
| Implements | Yiisoft\Yii\Debug\StartupPolicy\Collector\CollectorStartupPolicyInterface |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Yii\Debug\StartupPolicy\Collector\CallableCollectorPolicy | |
| satisfies() | Yiisoft\Yii\Debug\StartupPolicy\Collector\CallableCollectorPolicy |
Method Details
| public __construct( callable $callable ): mixed | ||
| $callable | callable | |
public function __construct(
callable $callable
) {
$this->callable = $callable;
}
| 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);
}
Signup or Login in order to comment.