This commit is contained in:
2023-04-22 02:04:31 +08:00
parent 52872eb6f7
commit 2576d84860
+13
View File
@@ -34,6 +34,19 @@ class Handler implements RequestHandlerInterface
}
/**
* @param string $interface
* @return bool
*/
public function implement(string $interface): bool
{
if (!$this->isClosure()) {
return $this->handler[0] instanceof $interface;
}
return false;
}
/**
* @return string|null
*/