diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-19 17:50:21 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-19 17:58:54 +0200 |
commit | dd4b3d9ebb85c9bc8138212fd7cb207ab154f626 (patch) | |
tree | e005be07809b4644d6974eb59bcfdca7017f3234 /core/namespace/Parsers/ParserInterface.php | |
parent | 489851d1e7b1d346ff316e7a6721de574322d7d6 (diff) | |
download | blog-dd4b3d9ebb85c9bc8138212fd7cb207ab154f626.tar.gz blog-dd4b3d9ebb85c9bc8138212fd7cb207ab154f626.tar.xz blog-dd4b3d9ebb85c9bc8138212fd7cb207ab154f626.zip |
Add and use new parser/transformer classes
Classes:
* Parsers\ArgumentParser
* Parsers\EmoticonParser
* Parsers\MarkdownParser
Interfaces:
* Parsers\ParserInterface
Diffstat (limited to 'core/namespace/Parsers/ParserInterface.php')
-rw-r--r-- | core/namespace/Parsers/ParserInterface.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/namespace/Parsers/ParserInterface.php b/core/namespace/Parsers/ParserInterface.php new file mode 100644 index 0000000..8dd94e2 --- /dev/null +++ b/core/namespace/Parsers/ParserInterface.php @@ -0,0 +1,7 @@ +<?php +namespace Parsers; + +interface ParserInterface { + public function parse(string $text): array; + public function transform(string $text): string; +} |