public function setPartOfRecord($partOfRecord)
    {
        if (is_bool($partOfRecord)) {
            $this->isPartOfRecord = $partOfRecord;
        } else {
            $msg = "The argument must be a boolean, '" . gettype($partOfRecord) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setPartOfRecord($partOfRecord)
    {
        if (is_bool($partOfRecord)) {
            $this->isPartOfRecord = $partOfRecord;
        } else {
            $msg = "The argument must be a boolean, '" . gettype($partOfRecord) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setPartOfRecord ( $ partOfRecord ) { if ( is_bool ( $ partOfRecord ) ) { $ this -> isPartOfRecord = $ partOfRecord ; } else { $ msg = "The argument must be a boolean, '" . gettype ( $ partOfRecord ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set wether or not the value is part of a record.

@param boolean $partOfRecord
@throws \InvalidArgumentException If $partOfRecord is not a boolean.
Set wether or not the value is part of a record .