public function setPid($pid, $reassign = false) { if ($this->pid === '' || $reassign) { $this->pid = $pid; } return $this; }