function FeatureSet::setCalculator
Sets the calculator to use in this environment
1 call to FeatureSet::setCalculator()
- FeatureSet::__construct in vendor/
ramsey/ uuid/ src/ FeatureSet.php
File
-
vendor/
ramsey/ uuid/ src/ FeatureSet.php, line 209
Class
- FeatureSet
- FeatureSet detects and exposes available features in the current environment
Namespace
Ramsey\UuidCode
public function setCalculator(CalculatorInterface $calculator) : void {
$this->calculator = $calculator;
$this->numberConverter = $this->buildNumberConverter($calculator);
$this->timeConverter = $this->buildTimeConverter($calculator);
/** @psalm-suppress RedundantPropertyInitializationCheck */
if (isset($this->timeProvider)) {
$this->timeGenerator = $this->buildTimeGenerator($this->timeProvider);
}
}