public function edit($body, $integrityCheck = false){
        if(!is_string($body)){
            throw new InvalidArgumentException('a QTI container must have a body of string type');
        }
        if($integrityCheck && !$this->checkIntegrity($body)){
            return false;
        }
        $this->body = $body;
        return true;
    }
public function edit($body, $integrityCheck = false){
        if(!is_string($body)){
            throw new InvalidArgumentException('a QTI container must have a body of string type');
        }
        if($integrityCheck && !$this->checkIntegrity($body)){
            return false;
        }
        $this->body = $body;
        return true;
    }
public function edit ( $ body , $ integrityCheck = false ) { if ( ! is_string ( $ body ) ) { throw new InvalidArgumentException ( 'a QTI container must have a body of string type' ) ; } if ( $ integrityCheck && ! $ this -> checkIntegrity ( $ body ) ) { return false ; } $ this -> body = $ body ; return true ; }
modify the content of the body

@param string $body
@param bool $integrityCheck
@return bool
modify the content of the body