A configuration of a software product line.
A configuration is a set of selected features of a feature model, implying a set of deselected features as well (\FeaturePhp\Model\Feature and \FeaturePhp\Model\Model). (Partial configurations are not needed on the server-side.) A configuration may be valid or invalid, this is determined by a the feature model's \FeaturePhp\Model\ConstraintSolver. The underlying XML configuration has its own class, \FeaturePhp\Model\XmlConfiguration.
package | Default |
---|
__construct(\FeaturePhp\Model\Model $model, \FeaturePhp\Model\XmlConfiguration $xmlConfiguration)
\FeaturePhp\Model\Model
\FeaturePhp\Model\XmlConfiguration
getDeselectedFeatures() : array<mixed,\FeaturePhp\Model\Feature>
array<mixed,\FeaturePhp\Model\Feature>
getModel() : \FeaturePhp\Model\Model
\FeaturePhp\Model\Model
getSelectedFeatures() : array<mixed,\FeaturePhp\Model\Feature>
array<mixed,\FeaturePhp\Model\Feature>
getValue(\FeaturePhp\Model\ValueFeature $feature) : string
\FeaturePhp\Model\ValueFeature
string
getXmlConfiguration() : \FeaturePhp\Model\XmlConfiguration
\FeaturePhp\Model\XmlConfiguration
isValid() : boolean
boolean
renderAnalysis(\FeaturePhp\ProductLine\ProductLine $productLine= null
, boolean $textOnly= false
) : string
\FeaturePhp\ProductLine\ProductLine
optional product line to render more information
boolean
whether to render text or HTML
string
$deselectedFeatures : array<mixed,\FeaturePhp\Model\Feature>
$model : \FeaturePhp\Model\Model
$selectedFeatures : array<mixed,\FeaturePhp\Model\Feature>
$xmlConfiguration : \FeaturePhp\Model\XmlConfiguration