| 1 | <?php |
||
| 8 | class TokenFactory |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Factory method to build the correct token. |
||
| 12 | * |
||
| 13 | * @param string $html |
||
| 14 | * @param Token|null $parent |
||
| 15 | * @param bool $throwOnError |
||
| 16 | * |
||
| 17 | * @return TokenInterface|null |
||
| 18 | * @throws TokenMatchingException |
||
| 19 | */ |
||
| 20 | 36 | public static function buildFromHtml(string $html, Token $parent = null, bool $throwOnError = true) |
|
| 43 | } |
||
| 44 |