protected function labelsToRaw(array $labels)
    {
        $final = [];

        foreach ($labels as $label) {
            if ($label->isPlain) {
                return $label->text;
            }

            $final[$label->lang] = $label->text;
        }

        return (object) $final;
    }
protected function labelsToRaw(array $labels)
    {
        $final = [];

        foreach ($labels as $label) {
            if ($label->isPlain) {
                return $label->text;
            }

            $final[$label->lang] = $label->text;
        }

        return (object) $final;
    }
protected function labelsToRaw ( array $ labels ) { $ final = [ ] ; foreach ( $ labels as $ label ) { if ( $ label -> isPlain ) { return $ label -> text ; } $ final [ $ label -> lang ] = $ label -> text ; } return ( object ) $ final ; }
Gets current labels in a raw format.

@return mix (string|object)
Gets current labels in a raw format .