public function setStagedRevision(Revision $revision)
    {
        if (!empty($this->publishedRevision)
            && $this->publishedRevision->getRevisionId() == $revision->getRevisionId()
        ) {
            $this->removePublishedRevision();
        }

        $this->stagedRevision = $revision;
        $this->stagedRevisionId = $revision->getRevisionId();
    }
public function setStagedRevision(Revision $revision)
    {
        if (!empty($this->publishedRevision)
            && $this->publishedRevision->getRevisionId() == $revision->getRevisionId()
        ) {
            $this->removePublishedRevision();
        }

        $this->stagedRevision = $revision;
        $this->stagedRevisionId = $revision->getRevisionId();
    }
public function setStagedRevision ( Revision $ revision ) { if ( ! empty ( $ this -> publishedRevision ) && $ this -> publishedRevision -> getRevisionId ( ) == $ revision -> getRevisionId ( ) ) { $ this -> removePublishedRevision ( ) ; } $ this -> stagedRevision = $ revision ; $ this -> stagedRevisionId = $ revision -> getRevisionId ( ) ; }
Sets the staged revision

@param Revision $revision Revision object to add

@return void
Sets the staged revision