Final Class Yiisoft\Rbac\Exception\RuleInterfaceNotImplementedException
| Inheritance | Yiisoft\Rbac\Exception\RuleInterfaceNotImplementedException » Exception |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\Rbac\Exception\RuleInterfaceNotImplementedException |
Method Details
| public mixed __construct ( string $name, integer $code = 0, Throwable|null $previous = null ) | ||
| $name | string | |
| $code | integer | |
| $previous | Throwable|null | |
public function __construct(string $name, int $code = 0, ?Throwable $previous = null)
{
$interfaceName = RuleInterface::class;
parent::__construct(
"Rule \"$name\" must implement \"$interfaceName\".",
$code,
$previous,
);
}
Signup or Login in order to comment.