Skip to content

Commit de33db2

Browse files
author
Martin Brecht-Precht
committed
Added a missing method to the DebugHandler.
1 parent e2f86c7 commit de33db2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Handler/DebugHandler.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
namespace Markdom\Handler;
44

5+
use Markdom\HandlerInterface\HandlerInterface;
6+
57
/**
68
* Class JsonHandler
79
*
810
* @package Markdom\Handler
911
*/
10-
class DebugHandler extends PhpObjectHandler
12+
class DebugHandler implements HandlerInterface
1113
{
1214

1315
/**
@@ -67,6 +69,15 @@ public function onCodeBlock($code, $hint = null)
6769
$this->output[] = $this->getIndentation() . __FUNCTION__ . ': ' . $hint . ' ~ ' . $code;
6870
}
6971

72+
/**
73+
* @param $comment
74+
* @return void
75+
*/
76+
public function onCommentBlock($comment)
77+
{
78+
$this->output[] = $this->getIndentation() . __FUNCTION__ . ': ' . $comment;
79+
}
80+
7081
/**
7182
* @return void
7283
*/

0 commit comments

Comments
 (0)