public function setPublication($publication) { $this->publication = empty($publication) ? NULL : (int) $publication; return $this; }