public function pluck($visibleColumn, $key)
    {
        if (!empty($visibleColumn) && !empty($key)) {
            $this->keyAsValue = true;
        }

        $this->visibleColumn = $visibleColumn;
        $this->key = $key;

        return $this;
    }
public function pluck($visibleColumn, $key)
    {
        if (!empty($visibleColumn) && !empty($key)) {
            $this->keyAsValue = true;
        }

        $this->visibleColumn = $visibleColumn;
        $this->key = $key;

        return $this;
    }
public function pluck ( $ visibleColumn , $ key ) { if ( ! empty ( $ visibleColumn ) && ! empty ( $ key ) ) { $ this -> keyAsValue = true ; } $ this -> visibleColumn = $ visibleColumn ; $ this -> key = $ key ; return $ this ; }
Set visible column and key of data.

@param $visibleColumn
@param $key

@return $this
Set visible column and key of data .