public function transform($original)
    {
        if (!$original) {
            return $original;
        }

        $string = substr($original, 1);
        $split = explode('-', $string);

        return [
            'side' => $split[0],
            'size' => $split[1],
        ];
    }
public function transform($original)
    {
        if (!$original) {
            return $original;
        }

        $string = substr($original, 1);
        $split = explode('-', $string);

        return [
            'side' => $split[0],
            'size' => $split[1],
        ];
    }
public function transform ( $ original ) { if ( ! $ original ) { return $ original ; } $ string = substr ( $ original , 1 ) ; $ split = explode ( '-' , $ string ) ; return [ 'side' => $ split [ 0 ] , 'size' => $ split [ 1 ] , ] ; }
Splits the string into the side- and size values

@param string|null $original
@return array|mixed
Splits the string into the side - and size values