A renderer for a configuration and its model.
This renders a \FeaturePhp\Model\Configuration and its \FeaturePhp\Model\Model analysis as a web page. The model analysis includes a list of features and descriptions. The configuration analysis lists selected and deselected features and evaluates the configuration's validity.
package | Default |
---|---|
inherited_from | \FeaturePhp\Renderer |
__construct(\FeaturePhp\Model\Configuration $configuration, \FeaturePhp\ProductLine\ProductLine $productLine = null
)
\FeaturePhp\Model\Configuration
\FeaturePhp\ProductLine\ProductLine
_render(boolean $textOnly) : string
inherited_from | \FeaturePhp\Renderer::_render() |
---|
boolean
whether to render text or HTML
string
render(boolean $textOnly = false
) : string
boolean
whether to render text or HTML
string
renderText() : string
This is used by the command-line interface.
string
_render(boolean $textOnly) : string
boolean
whether to render text or HTML
string
getStyle() : string
string
analyzeConfiguration(\FeaturePhp\Model\Configuration $configuration, boolean $textOnly) : string
\FeaturePhp\Model\Configuration
boolean
whether to render text or HTML
string
analyzeModel(\FeaturePhp\Model\Model $model, boolean $textOnly) : string
\FeaturePhp\Model\Model
boolean
whether to render text or HTML
string
$accentColor : string
"\033[1;33m"
$defaultColor : string
"\033[0m"
$configuration : \FeaturePhp\Model\Configuration
$productLine : \FeaturePhp\ProductLine\ProductLine | null