LdapTools\Security\GUID::decodeFromBinary PHP 메소드

decodeFromBinary() 보호된 메소드

protected decodeFromBinary ( string $guid )
$guid string
    protected function decodeFromBinary($guid)
    {
        $hex = unpack('H*hex', $guid)['hex'];
        $guidStrings = [];
        foreach ($this->guidSections as $section) {
            $guidStrings[] = $this->parseSection($hex, $section);
        }
        $guid = implode('-', $guidStrings);
        if (!LdapUtilities::isValidGuid($guid)) {
            throw new \UnexpectedValueException(sprintf('The GUID with value "%s" is not valid.', $guid));
        }
        $this->guid = $guid;
    }