function FeatureSet::buildCodec
Returns a codec configured for this environment
Parameters
bool $useGuids Whether to build UUIDs using the GuidStringCodec:
1 call to FeatureSet::buildCodec()
- FeatureSet::__construct in vendor/
ramsey/ uuid/ src/ FeatureSet.php
File
-
vendor/
ramsey/ uuid/ src/ FeatureSet.php, line 263
Class
- FeatureSet
- FeatureSet detects and exposes available features in the current environment
Namespace
Ramsey\UuidCode
private function buildCodec(bool $useGuids = false) : CodecInterface {
if ($useGuids) {
return new GuidStringCodec($this->builder);
}
return new StringCodec($this->builder);
}