src/Classes/DatasetClass.php
public function values($values)
    {
        if ($values instanceof Collection) {
            $values = $values->toArray();
        }

        $this->values = $values;

        return $this;
    }
public function values($values)
    {
        if ($values instanceof Collection) {
            $values = $values->toArray();
        }

        $this->values = $values;

        return $this;
    }
public function values ( $ values ) { if ( $ values instanceof Collection ) { $ values = $ values -> toArray ( ) ; } $ this -> values = $ values ; return $ this ; }
Set the dataset values.

@param array|Collection $values

@return self
Set the dataset values .