[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/ramsey/uuid/src/Codec/ -> StringCodec.php (summary)

This file is part of the ramsey/uuid library For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Copyright: Copyright (c) Ben Ramsey <[email protected]>
License: http://opensource.org/licenses/MIT MIT
File Size: 170 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

StringCodec:: (8 methods):
  __construct()
  encode()
  encodeBinary()
  decode()
  decodeBytes()
  getBuilder()
  extractComponents()
  getFields()


Class: StringCodec  - X-Ref

StringCodec encodes and decodes RFC 4122 UUIDs

__construct(UuidBuilderInterface $builder)   X-Ref
Constructs a StringCodec for use encoding and decoding UUIDs

param: UuidBuilderInterface $builder The UUID builder to use when encoding UUIDs

encode(UuidInterface $uuid)   X-Ref
Encodes a UuidInterface as a string representation of a UUID

param: UuidInterface $uuid
return: string Hexadecimal string representation of a UUID

encodeBinary(UuidInterface $uuid)   X-Ref
Encodes a UuidInterface as a binary representation of a UUID

param: UuidInterface $uuid
return: string Binary string representation of a UUID

decode($encodedUuid)   X-Ref
Decodes a string representation of a UUID into a UuidInterface object instance

param: string $encodedUuid
return: UuidInterface

decodeBytes($bytes)   X-Ref
Decodes a binary representation of a UUID into a UuidInterface object instance

param: string $bytes
return: UuidInterface

getBuilder()   X-Ref
Returns the UUID builder

return: UuidBuilderInterface

extractComponents($encodedUuid)   X-Ref
Returns an array of UUID components (the UUID exploded on its dashes)

param: string $encodedUuid
return: array

getFields(array $components)   X-Ref
Returns the fields that make up this UUID

param: array $components
return: array



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer