public function setHeaderOffset($offset): self
    {
        if ($offset === $this->header_offset) {
            return $this;
        }

        if (!is_nullable_int($offset)) {
            throw new TypeError(sprintf(__METHOD__.'() expects 1 Argument to be null or an integer %s given', gettype($offset)));
        }

        if (null !== $offset && 0 > $offset) {
            throw new Exception(__METHOD__.'() expects 1 Argument to be greater or equal to 0');
        }

        $this->header_offset = $offset;
        $this->resetProperties();

        return $this;
    }
public function setHeaderOffset($offset): self
    {
        if ($offset === $this->header_offset) {
            return $this;
        }

        if (!is_nullable_int($offset)) {
            throw new TypeError(sprintf(__METHOD__.'() expects 1 Argument to be null or an integer %s given', gettype($offset)));
        }

        if (null !== $offset && 0 > $offset) {
            throw new Exception(__METHOD__.'() expects 1 Argument to be greater or equal to 0');
        }

        $this->header_offset = $offset;
        $this->resetProperties();

        return $this;
    }
public function setHeaderOffset ( $ offset ) : self { if ( $ offset === $ this -> header_offset ) { return $ this ; } if ( ! is_nullable_int ( $ offset ) ) { throw new TypeError ( sprintf ( __METHOD__ . '() expects 1 Argument to be null or an integer %s given' , gettype ( $ offset ) ) ) ; } if ( null !== $ offset && 0 > $ offset ) { throw new Exception ( __METHOD__ . '() expects 1 Argument to be greater or equal to 0' ) ; } $ this -> header_offset = $ offset ; $ this -> resetProperties ( ) ; return $ this ; }
Selects the record to be used as the CSV header.

Because the header is represented as an array, to be valid
a header MUST contain only unique string value.

@param int|null $offset the header record offset

@throws Exception if the offset is a negative integer

@return static
Selects the record to be used as the CSV header .