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;
}