public function setFormat($format, $commitDelimiter, $fieldDelimiter)
    {
        if (!is_string($format)) {
            throw new InvalidArgumentException('string', 0);
        }
        if (!is_string($commitDelimiter)) {
            throw new InvalidArgumentException('string', 1);
        }
        if (!is_string($fieldDelimiter)) {
            throw new InvalidArgumentException('string', 2);
        }
        $this->commitDelimiter = $commitDelimiter;
        $this->fieldDelimiter = $fieldDelimiter;
        $this->format = $format;

        return $this;
    }