A feature of a feature model.
A feature is a characteristic or end-user-visible behavior of a software system.
(from "Feature-Oriented Software Product Lines", see http://www.springer.com/de/book/9783642375200)
Here, it is essentially a name for some functionality that should be either included in (selected feature) or omitted from (deselected feature) a \FeaturePhp\ProductLine\Product. Features are usually related to other features through feature constraints (see \FeaturePhp\Model\ConstraintSolver). Every feature has a corresponding \FeaturePhp\Artifact\Artifact that handles the details of product generation.
| package | Default |
|---|
__construct(\SimpleXMLElement $node, \SimpleXMLElement $parent= null, array<mixed,\SimpleXMLElement> $children= null)
For the attributes "mandatory", "alternative" and "or" see \FeaturePhp\Model\ConstraintSolver.
\SimpleXMLElement
\SimpleXMLElement
array<mixed,\SimpleXMLElement>
findByName(array<mixed,\FeaturePhp\Model\Feature> $features, string $featureName, boolean $permissive = false) : \FeaturePhp\Model\Feature
Permissive search ignores case and substitutes hyphens.
array<mixed,\FeaturePhp\Model\Feature>
string
boolean
\FeaturePhp\Model\FeaturefromNode(\SimpleXMLElement $node, \SimpleXMLElement $parent) : \FeaturePhp\Model\Feature
\SimpleXMLElement
\SimpleXMLElement
\FeaturePhp\Model\FeaturegetAlternative() : boolean
booleangetChildren() : array<mixed,\SimpleXMLElement>
array<mixed,\SimpleXMLElement>getDefaultValue() : string
stringgetDescription() : string
stringgetIdentifier() : string
stringgetMandatory() : boolean
booleangetName() : string
stringgetOr() : boolean
booleangetParent() : \SimpleXMLElement
\SimpleXMLElementgetPermissiveName() : string
stringhas(array<mixed,\FeaturePhp\Model\Features> $features, \FeaturePhp\Model\Feature $feature) : boolean
array<mixed,\FeaturePhp\Model\Features>
\FeaturePhp\Model\Feature
boolean_getPermissiveName(string $name) : string
string
string$alternative : boolean
$children : array<mixed,\SimpleXMLElement>
$description : string
$mandatory : boolean
$name : string
$or : boolean
$parent : \SimpleXMLElement