createVersion = true; $this->node = $node; } /** * get Node of the file which should be versioned * * @return Node */ public function getNode(): Node { return $this->node; } /** * disable versions for this file */ public function disableVersions(): void { $this->createVersion = false; } /** * should a version be created for this file? * * @return bool */ public function shouldCreateVersion(): bool { return $this->createVersion; } }