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);
        }
    }