public function transform($value)
    {
        if (null === $value) {
            return null;
        }

        if (!$value instanceof ContentInfo) {
            throw new TransformationFailedException('Expected a ' . ContentInfo::class . ' object.');
        }

        return $value->id;
    }
public function transform($value)
    {
        if (null === $value) {
            return null;
        }

        if (!$value instanceof ContentInfo) {
            throw new TransformationFailedException('Expected a ' . ContentInfo::class . ' object.');
        }

        return $value->id;
    }
public function transform ( $ value ) { if ( null === $ value ) { return null ; } if ( ! $ value instanceof ContentInfo ) { throw new TransformationFailedException ( 'Expected a ' . ContentInfo :: class . ' object.' ) ; } return $ value -> id ; }
Transforms a domain specific ContentInfo object into a Content's ID.

@param ContentInfo|null $value

@return mixed|null

@throws TransformationFailedException
Transforms a domain specific ContentInfo object into a Content s ID .