Created
March 13, 2016 18:30
-
-
Save joshuaadickerson/71f4f5db52d825c8fe93 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class \BBC\Types\ClosedType | |
{ | |
const HAS_PARAM = false; | |
const HAS_EQUALS = false; | |
const HAS_BEFORE = true; | |
const HAS_AFTER = true; | |
const HAS_CONTENT = false; | |
const PARSE_CONTENT = false; | |
const PARSE_EQUALS = false; | |
} | |
final class ParsedContentType | |
{ | |
const HAS_PARAM = false; | |
const HAS_EQUALS = false; | |
const HAS_BEFORE = true; | |
const HAS_AFTER = true; | |
const HAS_CONTENT = false; | |
const PARSE_CONTENT = false; | |
const PARSE_EQUALS = false; | |
} | |
final class UnparsedContentType | |
{ | |
const HAS_PARAM = false; | |
const HAS_EQUALS = false; | |
const HAS_BEFORE = true; | |
const HAS_AFTER = true; | |
const HAS_CONTENT = false; | |
const PARSE_CONTENT = false; | |
const PARSE_EQUALS = false; | |
} | |
// explode('[', $message) | |
// array([bla]) | |
class PreparseNode | |
{ | |
/** | |
* tag, content, open_quote, close_tag, close_quote | |
*/ | |
protected $type; | |
protected $tag; | |
protected $content; | |
protected $children; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment