Skip to content

Commit fdbcc8a

Browse files
author
Martin Brecht-Precht
committed
Language level migration.
1 parent c1eb1ff commit fdbcc8a

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

composer.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"name": "markdom/model-interface",
3-
"type": "library",
4-
"description": "Markdom domain model interfaces written in PHP",
5-
"keywords": [
6-
"Markdom",
7-
"Model",
8-
"Interface"
9-
],
10-
"homepage": "http://markenwerk.net/",
11-
"license": "MIT",
12-
"authors": [
13-
{
14-
"name": "Martin Brecht-Precht",
15-
"email": "mb@markenwerk.net",
16-
"homepage": "http://markenwerk.net"
17-
}
18-
],
19-
"autoload": {
20-
"psr-4": {
21-
"Markdom\\ModelInterface\\": "src"
22-
}
23-
},
24-
"require": {
25-
"php": ">=5.3",
26-
"markdom/handler-interface": "^1.0.10"
27-
}
2+
"name": "markdom/model-interface",
3+
"type": "library",
4+
"description": "Markdom domain model interfaces written in PHP",
5+
"keywords": [
6+
"Markdom",
7+
"Model",
8+
"Interface"
9+
],
10+
"homepage": "http://markenwerk.net/",
11+
"license": "MIT",
12+
"authors": [
13+
{
14+
"name": "Martin Brecht-Precht",
15+
"email": "mb@markenwerk.net",
16+
"homepage": "http://markenwerk.net"
17+
}
18+
],
19+
"autoload": {
20+
"psr-4": {
21+
"Markdom\\ModelInterface\\": "src"
22+
}
23+
},
24+
"require": {
25+
"php": "^7.1",
26+
"markdom/handler-interface": "^1.1.0"
27+
}
2828
}

src/Block/BlockParentInterface.php

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

17-
const BLOCK_PARENT_TYPE_DOCUMENT = 'DOCUMENT';
18-
const BLOCK_PARENT_TYPE_LIST_ITEM = 'LIST_ITEM';
19-
const BLOCK_PARENT_TYPE_QUOTE = 'QUOTE';
17+
public const BLOCK_PARENT_TYPE_DOCUMENT = 'DOCUMENT';
18+
public const BLOCK_PARENT_TYPE_LIST_ITEM = 'LIST_ITEM';
19+
public const BLOCK_PARENT_TYPE_QUOTE = 'QUOTE';
2020

2121
/**
2222
* @return string
2323
*/
24-
public function getBlockParentType();
24+
public function getBlockParentType(): string;
2525

2626
/**
2727
* @return BlockSequenceInterface

src/Content/ContentParentInterface.php

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

18-
const CONTENT_PARENT_TYPE_EMPHASIS = 'EMPHASIS';
19-
const CONTENT_PARENT_TYPE_HEADING = 'HEADING';
20-
const CONTENT_PARENT_TYPE_LINK = 'LINK';
21-
const CONTENT_PARENT_TYPE_PARAGRAPH = 'PARAGRAPH';
18+
public const CONTENT_PARENT_TYPE_EMPHASIS = 'EMPHASIS';
19+
public const CONTENT_PARENT_TYPE_HEADING = 'HEADING';
20+
public const CONTENT_PARENT_TYPE_LINK = 'LINK';
21+
public const CONTENT_PARENT_TYPE_PARAGRAPH = 'PARAGRAPH';
2222

2323
/**
2424
* @return string
2525
*/
26-
public function getContentParentType();
26+
public function getContentParentType(): string;
2727

2828
/**
2929
* @return BlockInterface
3030
*/
31-
public function getBlock(): ContentParentBlockInterface;
31+
public function getBlock(): BlockInterface;
3232

3333
/**
3434
* @return ContentSequenceInterface

0 commit comments

Comments
 (0)