protected function getLabelValues(array $labels)
    {
        $values = [];

        foreach ($labels as $label) {
            if ($label instanceof Label) {
                $values[] = $label->value;
            }
        }

        return $values;
    }
protected function getLabelValues(array $labels)
    {
        $values = [];

        foreach ($labels as $label) {
            if ($label instanceof Label) {
                $values[] = $label->value;
            }
        }

        return $values;
    }
protected function getLabelValues ( array $ labels ) { $ values = [ ] ; foreach ( $ labels as $ label ) { if ( $ label instanceof Label ) { $ values [ ] = $ label -> value ; } } return $ values ; }
It gets label's value for each label in the given labels

@param array $labels

@return string
It gets label s value for each label in the given labels