44
55use Markdom \Common \ContentType ;
66use Markdom \HandlerInterface \HandlerInterface ;
7- use Markdom \ModelInterface \Block \ContentParentBlockInterface ;
7+ use Markdom \ModelInterface \Block \BlockInterface ;
88use Markdom \ModelInterface \Common \NodeInterface ;
99
1010/**
1717interface ContentInterface extends NodeInterface
1818{
1919
20- public const TYPE_CODE = ContentType::TYPE_CODE ;
21- public const TYPE_EMPHASIS = ContentType::TYPE_EMPHASIS ;
22- public const TYPE_IMAGE = ContentType::TYPE_IMAGE ;
23- public const TYPE_LINE_BREAK = ContentType::TYPE_LINE_BREAK ;
24- public const TYPE_LINK = ContentType::TYPE_LINK ;
25- public const TYPE_TEXT = ContentType::TYPE_TEXT ;
20+ const CONTENT_TYPE_CODE = ContentType::TYPE_CODE ;
21+ const CONTENT_TYPE_EMPHASIS = ContentType::TYPE_EMPHASIS ;
22+ const CONTENT_TYPE_IMAGE = ContentType::TYPE_IMAGE ;
23+ const CONTENT_TYPE_LINE_BREAK = ContentType::TYPE_LINE_BREAK ;
24+ const CONTENT_TYPE_LINK = ContentType::TYPE_LINK ;
25+ const CONTENT_TYPE_TEXT = ContentType::TYPE_TEXT ;
2626
2727 /**
2828 * @return string
2929 */
30- public function getContentType (): string ;
30+ public function getContentType ();
3131
3232 /**
3333 * @return ContentParentInterface
3434 */
35- public function getParent (): ContentParentInterface ;
35+ public function getParent ();
3636
3737 /**
38- * @return ContentParentBlockInterface
38+ * @return BlockInterface
3939 */
40- public function getBlock (): ContentParentBlockInterface ;
40+ public function getBlock ();
4141
4242 /**
4343 * @param ContentParentInterface $contentParent
@@ -52,8 +52,7 @@ public function onDetach();
5252
5353 /**
5454 * @param HandlerInterface $markdomHandler
55- * @return void
5655 */
57- public function onHandle (HandlerInterface $ markdomHandler ): void ;
56+ public function onHandle (HandlerInterface $ markdomHandler );
5857
5958}
0 commit comments