{@inheritdoc}

@param string|UuidInterface|null                 $value
@param \Doctrine\DBAL\Platforms\AbstractPlatform $platform
330790
public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        if (empty($value)) {
            return null;
        }

        if ($value instanceof UuidInterface) {
            return $value;
        }

        try {
            return $this->decode($value);
        } catch (InvalidArgumentException $e) {
            throw ConversionException::conversionFailed($value, self::NAME);
        }
    }
638850
public final void setGuaranteedStreamUUID(SIBUuid12 value) {
    if (value != null)
      jmo.setField(ControlAccess.STREAMUUID, value.toByteArray());
    else
      jmo.setField(ControlAccess.STREAMUUID, null);
  }
999848
public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        if (!$value || !is_string($value)) {
            return null;
        }

        $timepoint = self::getParsingClock()->fromString($value, 'Y-m-d H:i:s');

        if (!$timepoint) {
            throw ConversionException::conversionFailedFormat($value, $this->getName(), $platform->getDateTimeFormatString());
        }

        return $timepoint;
    }
456976
public function convertToDatabaseValue($value, AbstractPlatform $platform)
    {
        if (empty($value)) {
            return null;
        }

        if ($value instanceof UuidInterface) {
            return $value->getBytes();
        }

        try {
            if (is_string($value) || method_exists($value, '__toString')) {
                return Uuid::fromString((string) $value)->getBytes();
            }
        } catch (InvalidArgumentException $e) {
            // Ignore the exception and pass through.
        }

        throw ConversionException::conversionFailed($value, static::NAME);
    }
1273715
public function setEntityType(\AgentSIB\Diadoc\Api\Proto\Events\EntityType $value = null)
    {
        $this->EntityType = $value;
    }
787039
public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        if ($value === null) {
            return;
        }

        $val = \DateTime::createFromFormat(
            $platform->getDateTimeFormatString(),
            $value,
            new \DateTimeZone('UTC')
        );
        if (!$val) {
            throw ConversionException::conversionFailed($value, $this->getName());
        }

        return $val;
    }
680425
static public function uuid($value, $message = null, $propertyPath = null)
        {
            $value = str_replace(
                array(
                    'urn:',
                    'uuid:',
                    '{', '}'
                ),
                '',
                $value
            );

            if ($value === '00000000-0000-0000-0000-000000000000') {
                return;
            }

            if (!preg_match('/^[0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-[1-5][0-9A-Fa-f]{3}-[0-9A-Fa-f]{4}-[0-9A-Fa-f]{12}$/', $value)) {
                $message = $message ?: sprintf(
                    'Value "%s" is not a valid UUID.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::INVALID_UUID, $propertyPath);
            }
        }
931631
public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        if (null === $value) {
            return null;
        }
        $listeners = $platform->getEventManager()->getListeners('sidus_family_configuration');

        /** @var FamilyRegistry $familyRegistry */
        $familyRegistry = array_shift($listeners);

        return $familyRegistry->getFamily($value);
    }
39235
public function setDocumentStatus(\AgentSIB\Diadoc\Api\Proto\Documents\NonformalizedDocument\NonformalizedDocumentStatus $value = null)
    {
        $this->DocumentStatus = $value;
    }
93970
public function setSignerCertificate($value = null)
    {
        if ($value !== null && ! $value instanceof \Protobuf\Stream) {
            $value = \Protobuf\Stream::wrap($value);
        }

        $this->SignerCertificate = $value;
    }
128281
public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        $val = parent::convertToPHPValue($value, $platform);

        return $val->setTimezone(new \DateTimeZone('America/Sao_Paulo'));
    }
546293
public function convertToPHPValue($value, AbstractPlatform $platform)
    {
        if ($value === null) {
            return null;
        }

        return new File(static::$basePath . $value);
    }
283821
public function convertToDatabaseValue($value, AbstractPlatform $platform)
    {
        if ($value === null) {
            return;
        }

        $formatter = new \NumberFormatter('pt_BR', \NumberFormatter::DECIMAL);
        $formatted = $formatter->parse($value);

        return $formatted;
    }
1198356
function setUid( $value, $params=FALSE ) {
    $this->uid['value']  = $value;
    if( empty( $this->uid['value'] ))
      return;
    $this->uid['params'] = $this->_setParams( $params );
  }
552694
public function convertToPHPValue($value, PlatformInterface $platform)
    {
        if ($value === null) {
            return;
        }

        $val = \DateTime::createFromFormat($platform->getTimeFormat(), $value);

        if ($val === false) {
            throw TypeException::conversionToPHPFailed($value, $this->getName());
        }

        return $val;
    }
1292236
public function setSignature($value = null)
    {
        if ($value !== null && ! $value instanceof \Protobuf\Stream) {
            $value = \Protobuf\Stream::wrap($value);
        }

        $this->Signature = $value;
    }
157384
public function writeValueToMappingResult($value, MappingResult $mappingResult, N2nContext $n2nContext) {
		if ($this->isArray()) {
			$mapValue = $this->createEmptyValue();
			
			if ($value !== null) {
				ArgUtils::valArrayLike($value);
				foreach ($value as $key => $valueField) {
					$mapValue[$key] = $this->createMappingResult($valueField, $n2nContext);
				}
			}
			 
			$mappingResult->__set($this->getName(), $mapValue);
			return;
		}

		if ($value !== null) {
			$mappingResult->__set($this->getName(), $this->createMappingResult($value, $n2nContext));
			return;
		}
		
		$mappingResult->__set($this->getName(), null);
	}