Skip to content

Commit

Permalink
add toString method
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Mar 27, 2020
1 parent 42e2989 commit 9b40e7f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Abstracts/MiddlewareAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ abstract class MiddlewareAbstract implements MiddlewareInterface
* @return ResponseInterface
*/
abstract public function handle(RequestInterface $request, Closure $next) : ?ResponseInterface;

public function __toString()
{
return serialize($this);
}
}

0 comments on commit 9b40e7f

Please sign in to comment.