Method | Description | |
---|---|---|
__construct ( Ramsey\Uuid\FeatureSet $features = null ) | Constructs a UuidFactory for creating Ramsey\Uuid\UuidInterface instances | |
fromBytes ( $bytes ) | ||
fromInteger ( $integer ) | ||
fromString ( $uuid ) | ||
getCodec ( ) : Ramsey\Uuid\Codec\CodecInterface | Returns the UUID coder-decoder used by this factory | |
getNodeProvider ( ) : Ramsey\Uuid\Provider\NodeProviderInterface | Returns the system node ID provider used by this factory | |
getNumberConverter ( ) : Ramsey\Uuid\Converter\NumberConverterInterface | Returns the number converter used by this factory | |
getRandomGenerator ( ) : Ramsey\Uuid\Generator\RandomGeneratorInterface | Returns the random UUID generator used by this factory | |
getTimeGenerator ( ) : Ramsey\Uuid\Generator\TimeGeneratorInterface | Returns the time-based UUID generator used by this factory | |
getUuidBuilder ( ) : Ramsey\Uuid\Builder\UuidBuilderInterface | Returns the UUID builder this factory uses when creating Uuid instances | |
setCodec ( Ramsey\Uuid\Codec\CodecInterface $codec ) | Sets the UUID coder-decoder used by this factory | |
setNumberConverter ( Ramsey\Uuid\Converter\NumberConverterInterface $converter ) | Sets the number converter this factory will use | |
setRandomGenerator ( Ramsey\Uuid\Generator\RandomGeneratorInterface $generator ) | Sets the random UUID generator this factory will use to generate version 4 UUIDs | |
setTimeGenerator ( Ramsey\Uuid\Generator\TimeGeneratorInterface $generator ) | Sets the time-based UUID generator this factory will use to generate version 1 UUIDs | |
setUuidBuilder ( Ramsey\Uuid\Builder\UuidBuilderInterface $builder ) | Sets the UUID builder this factory will use when creating Uuid instances | |
uuid ( array $fields ) : UuidInterface | Returns a Uuid | |
uuid1 ( $node = null, $clockSeq = null ) | ||
uuid3 ( $ns, $name ) | ||
uuid4 ( ) | ||
uuid5 ( $ns, $name ) |
Method | Description | |
---|---|---|
uuidFromHashedName ( string $hash, integer $version ) : UuidInterface | Returns a Uuid created from $hash with the version field set to $version and the variant field set for RFC 4122 | |
uuidFromNsAndName ( string | UuidInterface $ns, string $name, integer $version, string $hashFunction ) : UuidInterface | Returns a version 3 or 5 namespaced Uuid |
public __construct ( Ramsey\Uuid\FeatureSet $features = null ) | ||
$features | Ramsey\Uuid\FeatureSet | A set of features for use when creating UUIDs |
public getCodec ( ) : Ramsey\Uuid\Codec\CodecInterface | ||
return | Ramsey\Uuid\Codec\CodecInterface |
public getNodeProvider ( ) : Ramsey\Uuid\Provider\NodeProviderInterface | ||
return | Ramsey\Uuid\Provider\NodeProviderInterface |
public getNumberConverter ( ) : Ramsey\Uuid\Converter\NumberConverterInterface | ||
return | Ramsey\Uuid\Converter\NumberConverterInterface |
public getRandomGenerator ( ) : Ramsey\Uuid\Generator\RandomGeneratorInterface | ||
return | Ramsey\Uuid\Generator\RandomGeneratorInterface |
public getTimeGenerator ( ) : Ramsey\Uuid\Generator\TimeGeneratorInterface | ||
return | Ramsey\Uuid\Generator\TimeGeneratorInterface |
public getUuidBuilder ( ) : Ramsey\Uuid\Builder\UuidBuilderInterface | ||
return | Ramsey\Uuid\Builder\UuidBuilderInterface | $builder |
public setCodec ( Ramsey\Uuid\Codec\CodecInterface $codec ) | ||
$codec | Ramsey\Uuid\Codec\CodecInterface |
public setNumberConverter ( Ramsey\Uuid\Converter\NumberConverterInterface $converter ) | ||
$converter | Ramsey\Uuid\Converter\NumberConverterInterface |
public setRandomGenerator ( Ramsey\Uuid\Generator\RandomGeneratorInterface $generator ) | ||
$generator | Ramsey\Uuid\Generator\RandomGeneratorInterface |
public setTimeGenerator ( Ramsey\Uuid\Generator\TimeGeneratorInterface $generator ) | ||
$generator | Ramsey\Uuid\Generator\TimeGeneratorInterface |
public setUuidBuilder ( Ramsey\Uuid\Builder\UuidBuilderInterface $builder ) | ||
$builder | Ramsey\Uuid\Builder\UuidBuilderInterface |
protected uuidFromHashedName ( string $hash, integer $version ) : UuidInterface | ||
$hash | string | The hash to use when creating the UUID |
$version | integer | The UUID version to set for this hash (1, 3, 4, or 5) |
return | UuidInterface |
protected uuidFromNsAndName ( string | UuidInterface $ns, string $name, integer $version, string $hashFunction ) : UuidInterface | ||
$ns | string | UuidInterface | The UUID namespace to use |
$name | string | The string to hash together with the namespace |
$version | integer | The version of UUID to create (3 or 5) |
$hashFunction | string | The hash function to use when hashing together the namespace and name |
return | UuidInterface |