Skip to content

Commit

Permalink
Language level migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Brecht-Precht committed Nov 30, 2018
1 parent c1eb1ff commit fdbcc8a
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
52 changes: 26 additions & 26 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"name": "markdom/model-interface",
"type": "library",
"description": "Markdom domain model interfaces written in PHP",
"keywords": [
"Markdom",
"Model",
"Interface"
],
"homepage": "http://markenwerk.net/",
"license": "MIT",
"authors": [
{
"name": "Martin Brecht-Precht",
"email": "[email protected]",
"homepage": "http://markenwerk.net"
}
],
"autoload": {
"psr-4": {
"Markdom\\ModelInterface\\": "src"
}
},
"require": {
"php": ">=5.3",
"markdom/handler-interface": "^1.0.10"
}
"name": "markdom/model-interface",
"type": "library",
"description": "Markdom domain model interfaces written in PHP",
"keywords": [
"Markdom",
"Model",
"Interface"
],
"homepage": "http://markenwerk.net/",
"license": "MIT",
"authors": [
{
"name": "Martin Brecht-Precht",
"email": "[email protected]",
"homepage": "http://markenwerk.net"
}
],
"autoload": {
"psr-4": {
"Markdom\\ModelInterface\\": "src"
}
},
"require": {
"php": "^7.1",
"markdom/handler-interface": "^1.1.0"
}
}
8 changes: 4 additions & 4 deletions src/Block/BlockParentInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
interface BlockParentInterface extends NodeInterface
{

const BLOCK_PARENT_TYPE_DOCUMENT = 'DOCUMENT';
const BLOCK_PARENT_TYPE_LIST_ITEM = 'LIST_ITEM';
const BLOCK_PARENT_TYPE_QUOTE = 'QUOTE';
public const BLOCK_PARENT_TYPE_DOCUMENT = 'DOCUMENT';
public const BLOCK_PARENT_TYPE_LIST_ITEM = 'LIST_ITEM';
public const BLOCK_PARENT_TYPE_QUOTE = 'QUOTE';

/**
* @return string
*/
public function getBlockParentType();
public function getBlockParentType(): string;

/**
* @return BlockSequenceInterface
Expand Down
12 changes: 6 additions & 6 deletions src/Content/ContentParentInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
interface ContentParentInterface extends NodeInterface
{

const CONTENT_PARENT_TYPE_EMPHASIS = 'EMPHASIS';
const CONTENT_PARENT_TYPE_HEADING = 'HEADING';
const CONTENT_PARENT_TYPE_LINK = 'LINK';
const CONTENT_PARENT_TYPE_PARAGRAPH = 'PARAGRAPH';
public const CONTENT_PARENT_TYPE_EMPHASIS = 'EMPHASIS';
public const CONTENT_PARENT_TYPE_HEADING = 'HEADING';
public const CONTENT_PARENT_TYPE_LINK = 'LINK';
public const CONTENT_PARENT_TYPE_PARAGRAPH = 'PARAGRAPH';

/**
* @return string
*/
public function getContentParentType();
public function getContentParentType(): string;

/**
* @return BlockInterface
*/
public function getBlock(): ContentParentBlockInterface;
public function getBlock(): BlockInterface;

/**
* @return ContentSequenceInterface
Expand Down

0 comments on commit fdbcc8a

Please sign in to comment.