public function setDepth($depth) { $oldDepth = $this->depth; $this->depth = $depth; return $oldDepth; }