public function setDiff(tools\diffs\variable $diff = null) { $this->diff = $diff ?: new tools\diffs\variable(); return $this; }