An artifact associated with a feature.

An artifact is a representation of a \FeaturePhp\Model\Feature with information on how to generate a product for which the feature is selected or deselected. This information is provided by a \FeaturePhp\Artifact\Settings object.

package Default

 Methods

Creates an artifact.

__construct(\FeaturePhp\Model\Feature $feature, \FeaturePhp\Artifact\Settings $settings) 

Parameters

$feature

\FeaturePhp\Model\Feature

$settings

\FeaturePhp\Artifact\Settings

Returns the artifact's feature.

getFeature() : \FeaturePhp\Model\Feature

Returns

\FeaturePhp\Model\Feature

Returns the artifact's settings for a given generator.

getGeneratorSettings(string $generator) : \FeaturePhp\Generator\Settings

Returns empty settings if no settings are specified for the generator.

Parameters

$generator

string

Returns

\FeaturePhp\Generator\Settings

Returns the artifact's settings for all generators.

getGenerators() : array<mixed,\FeaturePhp\Generator\Settings>

Returns

array<mixed,\FeaturePhp\Generator\Settings>

Returns the artifact's settings.

getSettings() : \FeaturePhp\Artifact\Settings

Returns

\FeaturePhp\Artifact\Settings

Returns whether the artifact is registered with at least one generator.

isGenerated() : boolean

Returns

boolean

 Properties

 

the feature associated with the artifact

$feature : \FeaturePhp\Model\Feature

Default

 

the settings object with generator settings

$settings : \FeaturePhp\Artifact\Settings

Default