public function setHeader(array $header)
    {
        if (is_numeric(key($header))) {
            $header = array_fill_keys($header, '');
        }
        $this->header = $header;

        return $this;
    }
public function setHeader(array $header)
    {
        if (is_numeric(key($header))) {
            $header = array_fill_keys($header, '');
        }
        $this->header = $header;

        return $this;
    }
public function setHeader ( array $ header ) { if ( is_numeric ( key ( $ header ) ) ) { $ header = array_fill_keys ( $ header , '' ) ; } $ this -> header = $ header ; return $ this ; }
Set CSV headers.

@param array $header

@return $this
Set CSV headers .