public function checkIntegrity($body, &$missingElements = null){

        $returnValue = true;

        foreach($this->elements as $element){
            if(strpos($body, $element->getPlaceholder()) === false){
                $returnValue = false;
                if(is_array($missingElements)){
                    $missingElements[$element->getSerial()] = $element;
                }else{
                    break;
                }
            }
        }


        return (bool) $returnValue;
    }
public function checkIntegrity($body, &$missingElements = null){

        $returnValue = true;

        foreach($this->elements as $element){
            if(strpos($body, $element->getPlaceholder()) === false){
                $returnValue = false;
                if(is_array($missingElements)){
                    $missingElements[$element->getSerial()] = $element;
                }else{
                    break;
                }
            }
        }


        return (bool) $returnValue;
    }
public function checkIntegrity ( $ body , & $ missingElements = null ) { $ returnValue = true ; foreach ( $ this -> elements as $ element ) { if ( strpos ( $ body , $ element -> getPlaceholder ( ) ) === false ) { $ returnValue = false ; if ( is_array ( $ missingElements ) ) { $ missingElements [ $ element -> getSerial ( ) ] = $ element ; } else { break ; } } } return ( bool ) $ returnValue ; }
Check if modifying the body won't have an element placeholder deleted

@param string $body
@return boolean
Check if modifying the body won t have an element placeholder deleted