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