public function __construct(EditMode $editMode, PageStack $pageStack) { $this->editMode = $editMode; $this->pageStack = $pageStack; }