AbstractRenderer
abstract class AbstractRenderer (View source)
Abstract Diff Renderer
Properties
object | $diff | ||
protected array | $defaultOptions | ||
protected array | $options |
Methods
__construct(array $options = [])
The constructor. Instantiates the rendering engine and if options are passed, sets the options for the renderer.
setOptions(array $options)
Set the options of the renderer to those supplied in the passed in array.
string
render()
Render the diff.
Details
__construct(array $options = [])
The constructor. Instantiates the rendering engine and if options are passed, sets the options for the renderer.
setOptions(array $options)
Set the options of the renderer to those supplied in the passed in array.
Options are merged with the default to ensure that there aren't any missing options.
abstract string
render()
Render the diff.