Skip to content

Commit e99ecb3

Browse files
author
Martin Brecht-Precht
committed
Fixed some more issues from #1.
1 parent a2750ee commit e99ecb3

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

src/Block/BlockInterface.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ interface BlockInterface extends NodeInterface
3131
*/
3232
public function getBlockType();
3333

34-
/**
35-
* @return BlockInterface
36-
*/
37-
public function getBlock();
38-
3934
/**
4035
* @param BlockParentInterface $blockParent
4136
* @return $this

src/Block/BlockParentInterface.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@
1414
interface BlockParentInterface extends NodeInterface
1515
{
1616

17+
const TYPE_DOCUMENT = 'DOCUMENT';
18+
const TYPE_LIST_ITEM = 'LIST_ITEM';
19+
const TYPE_QUOTE = 'QUOTE';
20+
21+
/**
22+
* @return string
23+
*/
24+
public function getContentParentType();
25+
26+
/**
27+
* @return string
28+
*/
29+
public function getBlockParentType();
30+
1731
/**
1832
* @return BlockSequenceInterface
1933
*/

src/Block/ListBlockInterface.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
interface ListBlockInterface extends BlockInterface
1111
{
1212

13+
const TYPE_ORDERED_LIST = 'ORDERED_LIST';
14+
const TYPE_UNORDERED_LIST = 'UNORDERED_LIST';
15+
16+
/**
17+
* @return string
18+
*/
19+
public function getListBlockType();
20+
1321
/**
1422
* @return ListItemSequenceInterface
1523
*/

src/Content/ContentParentInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
interface ContentParentInterface extends NodeInterface
1616
{
1717

18+
const TYPE_EMPHASIS = 'EMPHASIS';
19+
const TYPE_HEADING = 'HEADING';
20+
const TYPE_LINK = 'LINK';
21+
const TYPE_PARAGRAPH = 'PARAGRAPH';
22+
1823
/**
1924
* @return ContentParentBlockInterface
2025
*/

0 commit comments

Comments
 (0)