public function setLines($lines) {
        if (!is_array($lines)) {
            throw new AutoGitIgnoreInvalidParameterException("$lines must be an array. Each value is one line");
        }
        if (current($lines) !== $this->startMarker) {
            array_unshift($lines, $this->startMarker);
        }
        if (end($lines) !== $this->endMarker) {
            $lines[] = $this->endMarker;
        }
        $this->autoLines = $lines;
        return $this;
    }