diff --git a/src/Handler.php b/src/Handler.php index 7e09f7b..d71baa7 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -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 */