public function setParent(Result $parent)
    {
        if ($this->parent !== $parent) {
            $this->parent = $parent;
            if ($this->hasErrors()) {
                $parent->setErrorsExist();
            }
            if ($this->hasWarnings()) {
                $parent->setWarningsExist();
            }
            if ($this->hasNotices()) {
                $parent->setNoticesExist();
            }
        }
    }
public function setParent(Result $parent)
    {
        if ($this->parent !== $parent) {
            $this->parent = $parent;
            if ($this->hasErrors()) {
                $parent->setErrorsExist();
            }
            if ($this->hasWarnings()) {
                $parent->setWarningsExist();
            }
            if ($this->hasNotices()) {
                $parent->setNoticesExist();
            }
        }
    }
public function setParent ( Result $ parent ) { if ( $ this -> parent !== $ parent ) { $ this -> parent = $ parent ; if ( $ this -> hasErrors ( ) ) { $ parent -> setErrorsExist ( ) ; } if ( $ this -> hasWarnings ( ) ) { $ parent -> setWarningsExist ( ) ; } if ( $ this -> hasNotices ( ) ) { $ parent -> setNoticesExist ( ) ; } } }
Injects the parent result and propagates the
cached error states upwards

@param Result $parent
@return void
Injects the parent result and propagates the cached error states upwards