public function setInternalOrderInfo($value)
    {
        if ($value instanceof ItemInfo) {
            $value = $value->toJson();
        } elseif (is_array($value)) {
            $value = \Zend_Json_Encoder::encode($value);
        }

        return parent::setInternalOrderInfo($value);
    }
public function setInternalOrderInfo($value)
    {
        if ($value instanceof ItemInfo) {
            $value = $value->toJson();
        } elseif (is_array($value)) {
            $value = \Zend_Json_Encoder::encode($value);
        }

        return parent::setInternalOrderInfo($value);
    }
public function setInternalOrderInfo ( $ value ) { if ( $ value instanceof ItemInfo ) { $ value = $ value -> toJson ( ) ; } elseif ( is_array ( $ value ) ) { $ value = \ Zend_Json_Encoder :: encode ( $ value ) ; } return parent :: setInternalOrderInfo ( $ value ) ; }
Encodes to JSON if it's not empty or already JSON

@param mixed $value

@return string | null
Encodes to JSON if it s not empty or already JSON