protected processInput ( string $input, string | null $type = null ) : mikehaertl\tmp\File | string | ||
$input | string | |
$type | string | null | a type hint if the input is a string of known type. This can either be `TYPE_HTML` or `TYPE_XML`. If `null` (default) the type is auto detected from the string content. |
return | mikehaertl\tmp\File | string | a File object if the input is a HTML or XML string. The unchanged input otherwhise. |