public function setLineBreaks(array $lineBreaks)
    {
        foreach ($lineBreaks as $lb) {
            if (!is_int($lb)) {
                throw new DomainException("lineBreaks array is expected to contain only integers");
            }
            $this->lineBreaks[] = $lb;
        }

        return $this;
    }