You are here

public function StabilityFlags::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/wikimedia/composer-merge-plugin/src/Merge/StabilityFlags.php \Wikimedia\Composer\Merge\StabilityFlags::__construct()

Parameters

array $stabilityFlags Current package name => stability mappings:

int $minimumStability Current default minimum stability:

File

vendor/wikimedia/composer-merge-plugin/src/Merge/StabilityFlags.php, line 43

Class

StabilityFlags
Adapted from Composer's RootPackageLoader::extractStabilityFlags @author Bryan Davis <bd808@bd808.com>

Namespace

Wikimedia\Composer\Merge

Code

public function __construct(array $stabilityFlags = array(), $minimumStability = BasePackage::STABILITY_STABLE) {
  $this->stabilityFlags = $stabilityFlags;
  $this->minimumStability = $this
    ->getStabilityInt($minimumStability);
  $this->explicitStabilityRe = '/^[^@]*?@(' . implode('|', array_keys(BasePackage::$stabilities)) . ')$/i';
}