Skip to content

Commit e85986c

Browse files
author
Martin Brecht-Precht
committed
Added CommentBlock.
Removed HTML fragments.
1 parent 955559d commit e85986c

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
},
2424
"require": {
2525
"php": ">=5.3",
26-
"markdom/handler-interface": "^1.0.2"
26+
"markdom/handler-interface": "^1.0.3"
2727
}
2828
}

src/Block/BlockInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ interface BlockInterface extends NodeInterface
1717
{
1818

1919
const TYPE_CODE = BlockType::TYPE_CODE;
20+
const TYPE_COMMENT = BlockType::TYPE_COMMENT;
2021
const TYPE_DIVISION = BlockType::TYPE_DIVISION;
2122
const TYPE_HEADING = BlockType::TYPE_HEADING;
2223
const TYPE_UNORDERED_LIST = BlockType::TYPE_UNORDERED_LIST;
2324
const TYPE_ORDERED_LIST = BlockType::TYPE_ORDERED_LIST;
2425
const TYPE_LIST_ITEM = BlockType::TYPE_LIST_ITEM;
2526
const TYPE_PARAGRAPH = BlockType::TYPE_PARAGRAPH;
2627
const TYPE_QUOTE = BlockType::TYPE_QUOTE;
27-
const TYPE_HTML = BlockType::TYPE_HTML;
2828

2929
/**
3030
* @return string

src/Block/CommentBlockInterface.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace Markdom\ModelInterface\Block;
4+
5+
/**
6+
* Interface CommentBlockInterface
7+
*
8+
* @package Markdom\ModelInterface\Block
9+
*/
10+
interface CommentBlockInterface extends BlockInterface
11+
{
12+
13+
/**
14+
* CommentBlockInterface constructor.
15+
*
16+
* @param $comment
17+
*/
18+
public function __construct($comment);
19+
20+
/**
21+
* @return string
22+
*/
23+
public function getComment();
24+
25+
/**
26+
* @param string $comment
27+
* @return $this
28+
*/
29+
public function setComment($comment);
30+
31+
}

0 commit comments

Comments
 (0)