public function __construct(RevisionReviewForm $form) { $this->form = $form; $this->newRev = Revision::newFromTitle($form->getPage(), $form->getOldId()); $this->oldRev = Revision::newFromTitle($form->getPage(), $form->getRefId()); }