setContinuedAsJournal() public method

public setContinuedAsJournal ( Journal $continuedAsJournal )
$continuedAsJournal Journal
Example #1
0
File: Journal.php Project: ojs/ojs
 /**
  * @param Journal $formerlyKnownAsJournal
  *
  * @return $this
  */
 public function setFormerlyKnownAsJournal($formerlyKnownAsJournal)
 {
     $oldFormerlyKnownAsJournal = $this->formerlyKnownAsJournal;
     $this->formerlyKnownAsJournal = $formerlyKnownAsJournal;
     if ($formerlyKnownAsJournal instanceof Journal && empty($formerlyKnownAsJournal->getContinuedAsJournal())) {
         $formerlyKnownAsJournal->setContinuedAsJournal($this);
     } elseif (empty($formerlyKnownAsJournal) && !empty($oldFormerlyKnownAsJournal)) {
         $formerlyKnownAsJournal->setContinuedAsJournal(null);
     }
     return $this;
 }