public function transform($valueAsString)
    {
        if (empty($valueAsString)) {
            return '';
        }
        $valueAsArray = unserialize($valueAsString);

        return isset($valueAsArray[0]) ? $valueAsArray[0] : '';
    }
public function transform($valueAsString)
    {
        if (empty($valueAsString)) {
            return '';
        }
        $valueAsArray = unserialize($valueAsString);

        return isset($valueAsArray[0]) ? $valueAsArray[0] : '';
    }
public function transform ( $ valueAsString ) { if ( empty ( $ valueAsString ) ) { return '' ; } $ valueAsArray = unserialize ( $ valueAsString ) ; return isset ( $ valueAsArray [ 0 ] ) ? $ valueAsArray [ 0 ] : '' ; }
Transforms a serialized string into a string

@param string $valueAsString

@return string
Transforms a serialized string into a string