public function setKeepTogether($keepTogether)
    {
        if (is_bool($keepTogether)) {
            $this->keepTogether = $keepTogether;
        } else {
            $msg = "KeepTogether must be a boolean, '" . gettype($keepTogether) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setKeepTogether($keepTogether)
    {
        if (is_bool($keepTogether)) {
            $this->keepTogether = $keepTogether;
        } else {
            $msg = "KeepTogether must be a boolean, '" . gettype($keepTogether) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setKeepTogether ( $ keepTogether ) { if ( is_bool ( $ keepTogether ) ) { $ this -> keepTogether = $ keepTogether ; } else { $ msg = "KeepTogether must be a boolean, '" . gettype ( $ keepTogether ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set if the items must be kept together if the section is invisible.

@param boolean $keepTogether true if the items must be kept together, false otherwise.
@throws \InvalidArgumentException If $keepTogether is not a boolean.
Set if the items must be kept together if the section is invisible .