HTML Validator response
- author Espen Hovlandsdal
- copyright Copyright (c) Espen Hovlandsdal
- license http://www.opensource.org/licenses/mit-license MIT License
- link https://github.
com/rexxars/html-validator
- Implements
Stringable
| Methods |
| public __construct(Psr\Http\Message\ResponseInterface $response) Constructs the response and parses it into usable data
|
| public __toString() : string Returns a string containing all the messages encountered
|
| public format( $useHTML = false) Returns a string-representation of all messages encountered
|
| public getErrors() Returns all encountered errors
|
| public getMessages() Returns all encountered messages
|
| public getWarnings() Returns all encountered warnings
|
| public hasErrors() Returns whether the markup the user tried to validate had any errors
|
| public hasMessages() Returns whether the markup the user tried to validate resulted in any messages
|
| public hasWarnings() Returns whether the markup the user tried to validate had any warnings
|
| public toHTML() Returns an HTML-representation of all messages encountered
|
| Properties |
| private $errors = [] List of errors encountered
|
| private $httpResponse = NULL HTTP response
|
| private $messages = [] List of all messages encountered
|
| private $warnings = [] List of warnings encountered
|
| Methods |
| private parse() Parse the received response into a usable format |
| private validateResponse( $response) Validate the HTTP response and throw exceptions on errors
|