public function getHeader(): array
    {
        if (null === $this->header_offset) {
            return $this->header;
        }

        if ([] !== $this->header) {
            return $this->header;
        }

        $this->header = $this->setHeader($this->header_offset);

        return $this->header;
    }
public function getHeader(): array
    {
        if (null === $this->header_offset) {
            return $this->header;
        }

        if ([] !== $this->header) {
            return $this->header;
        }

        $this->header = $this->setHeader($this->header_offset);

        return $this->header;
    }
public function getHeader ( ) : array { if ( null === $ this -> header_offset ) { return $ this -> header ; } if ( [ ] !== $ this -> header ) { return $ this -> header ; } $ this -> header = $ this -> setHeader ( $ this -> header_offset ) ; return $ this -> header ; }
Returns the CSV record used as header.

The returned header is represented as an array of string values

@return string[]
Returns the CSV record used as header .