public function setPriority($priority) { if ($priority) { $this->priority = $priority; } return $this; }