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;
    }
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;
    }
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 ; }
Set the line breaks

@param int[] $lineBreaks Array of integers
@throws DomainException
@return $this
Set the line breaks