protected function buildValues($values)
    {
        $result = [];

        // We will iterate through the entire array of values transforming every
        // item into the data type object linked to this collection. Any null
        // value will be omitted here in order to avoid storing NULL values.
        foreach ($values as $value) {
            if (! is_null($value)) {
                $result[] = $this->buildValue($value);
            }
        }

        return $result;
    }
protected function buildValues($values)
    {
        $result = [];

        // We will iterate through the entire array of values transforming every
        // item into the data type object linked to this collection. Any null
        // value will be omitted here in order to avoid storing NULL values.
        foreach ($values as $value) {
            if (! is_null($value)) {
                $result[] = $this->buildValue($value);
            }
        }

        return $result;
    }
protected function buildValues ( $ values ) { $ result = [ ] ; // We will iterate through the entire array of values transforming every // item into the data type object linked to this collection. Any null // value will be omitted here in order to avoid storing NULL values. foreach ( $ values as $ value ) { if ( ! is_null ( $ value ) ) { $ result [ ] = $ this -> buildValue ( $ value ) ; } } return $ result ; }
Build value instances from the given array.

@param \Illuminate\Support\Collection|array $values

@return \Rinvex\Attributes\Models\Value[]
Build value instances from the given array .