src/Type/IdentifierType.php
public function decode($value, Field $field, Codec $codec = null)
    {
        if (empty($value)) {
            return null;
        }

        /** @var Identifier $className */
        $className = $field->getClassName();

        try {
            return $className::fromString((string) $value);
        } catch (\Exception $e) {
            throw new DecodeValueFailed($value, $field, $e->getMessage());
        }
    }
public function decode($value, Field $field, Codec $codec = null)
    {
        if (empty($value)) {
            return null;
        }

        /** @var Identifier $className */
        $className = $field->getClassName();

        try {
            return $className::fromString((string) $value);
        } catch (\Exception $e) {
            throw new DecodeValueFailed($value, $field, $e->getMessage());
        }
    }
public function decode ( $ value , Field $ field , Codec $ codec = null ) { if ( empty ( $ value ) ) { return null ; } /** @var Identifier $className */ $ className = $ field -> getClassName ( ) ; try { return $ className :: fromString ( ( string ) $ value ) ; } catch ( \ Exception $ e ) { throw new DecodeValueFailed ( $ value , $ field , $ e -> getMessage ( ) ) ; } }
{@inheritdoc}
{