It gets label's value for each label in the given labels

@param array $labels

@return string
359260
protected function getLabelValues(array $labels)
    {
        $values = [];

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

        return $values;
    }
647219
protected function getValues(array $labels)
    {
        if (in_array(strtolower($this->type), $this->specialDatasets)) {
            return Collection::make($this->values)
                ->map(function ($value, $key) use ($labels) {
                    return [
                        'name'  => $labels[$key],
                        'value' => $value,
                    ];
                })->toArray();
        }

        return $this->values;
    }
1028777
protected function labelsToRaw(array $labels)
    {
        $final = [];

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

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

        return (object) $final;
    }
332783
private function getLabels($annotations)
    {
        $it = $this->getAnnotations()->filter($annotations)
            ->is(Label::class)
            ->onProperties();
        $labels = [];
        foreach ($it as $annotation) {
            $labels[$annotation->getPropertyName()] = $annotation->value;
        }
        return $labels;
    }
690262
protected function getLabelTitle($label, $name)
    {
        if ($label === false) {
            return null;
        }

        if (is_null($label) && Lang::has("forms.{$name}")) {
            return Lang::get("forms.{$name}");
        }

        return $label ?: str_replace('_', ' ', Str::title($name));
    }
707524
public static function getLabel(&$labelArgs, &$Tag)
    {
        /*
         * Normalize empty.
         */
        if (empty($labelArgs)) {
            $labelArgs = array();
        } else {
            /*
             * Parse the label arguments.
             */
            $t = $labelArgs;
            $labelArgs = self::parseAtts($labelArgs);
            $tempLabels = $labelArgs;

            if (count($labelArgs) == 1 && @array_shift($tempLabels) === null) {
                $labelArgs = array('inner' => $t);
            }
        }

        /*
         * Merge the passed args into defaults.
         */
        $labelArgs = array_merge(
            array(
                'inner' => ucfirst($Tag->attributes['id']),
                'pos' => 'before',
                'sep' => ''
            ),
            $labelArgs
        );

        /*
         * Set and normalize the glue arg.
         */
        if (!isset($labelArgs['glue'])) {
            if (!empty($labelArgs['sep'])) {
                $labelArgs['glue'] = true;
            } else {
                $labelArgs['glue'] = false;
            }
        } elseif ($labelArgs['glue'] == 'false') {
            $labelArgs['glue'] = false;
        } else {
            $labelArgs['glue'] = (bool) $labelArgs['glue'];
        }

        /*
         * Create and return the label object.
         */

        return new Tag('label', array($labelArgs['inner'], $Tag->attributes['id']));
    }
671800
public function modelAsNode(array $labels = null)
    {
        $labels = ( ! is_null($labels)) ? $labels : $this->from;

        return $this->grammar->modelAsNode($labels);
    }
1196920
protected function duplicateLabel($label)
    {
        $patternNameVersion = '/.*_([0-9]+$)/';
        if (0 !== preg_match_all($patternNameVersion, $label, $matches)) {
            $version = (int) $matches[1][0] + 1;
            return preg_replace('/[0-9]+$/', $version, $label);
        }

        return $label . '_2';
    }
292654
public function compileFrom($labels)
    {
        // first we will check whether we need
        // to reformat the labels from an array
        if (is_array($labels))
        {
            $labels = $this->prepareLabels($labels);
        }

        // every label must begin with a ':' so we need to check
        // and reformat if need be.
        $labels = ':' . preg_replace('/^:/', '', $labels);

        // now we add the default placeholder for this node
        $labels = $this->modelAsNode() . $labels;

        return sprintf("MATCH (%s)", $labels);
    }
385927
public function setLabel($label)
    {
        if (!(is_scalar($label) || is_null($label))) {
            return false;
        }

        $this->label = $label;
    }
1129734
public function label($for, $label, array $attributes = [])
    {
        $tag = new Tag('label', $attributes);
        $tag->for = $for;
        $tag->setText($label);
        return $tag;
    }
1154897
public function labels($labels = null)
    {
        if ($labels === null)
        {
            return $this->_labels;
        }

        $this->_labels = $labels;
        return $this;
    }
825489
protected function formatValues(array $labels)
    {
        $values = Collection::make($this->values);

        if (in_array(strtolower($this->type), $this->specialDatasets)) {
            $colors = $this->getColors($labels);

            return $values->map(function ($value, $key) use ($colors, $labels) {
                $val = [
                    'label' => $labels[$key],
                    'value' => $value,
                ];

                if ($colors->count() > 0) {
                    $val['color'] = $colors->get($key);
                }

                return $val;
            })->toArray();
        }

        return $values->map(function ($value) {
            return [
                'value' => $value,
            ];
        })->toArray();
    }
637180
public function labels($labels)
    {
        if ($labels instanceof Collection) {
            $labels = $labels->toArray();
        }

        $this->labels = $labels;

        return $this;
    }
1189046
public function getByLabel($label)
    {
        return isset($this->items[$label]) ? $this->items[$label] : null;
    }
1042315
public function setLabel($label)
    {
        if (is_array($label) && $label['icon']) {
            $this->setIcon($label['icon']);
        } elseif (is_string($label)) {
            return $this->setText($label);
        }

        return $this;
    }
1032796
public function setLabelOne($labels, $one)
    {
        $labels->singular_name = __($one);
        $labels->add_new = __('Add ' . $one);
        $labels->add_new_item = __('Add New ' . $one);
        $labels->edit_item = __('Edit ' . $one);
        $labels->new_item = __('New ' . $one);
        $labels->view_item = __('View ' . $one);
        $labels->parent_item_colon = __('Parent ' . $one . ':');
        $labels->archives = __($one . ' Archives');
        $labels->attributes = __($one . ' Attributes');
        $labels->insert_into_item = __('Insert into ' . strtolower($one));
        $labels->uploaded_to_this_item = __('Uploaded to this ' . strtolower($one));
        $labels->filter_items_list = __('Filter ' . strtolower($one) . ' list ');
        $labels->name_admin_bar = __($one);
        return $labels;
    }