public function setId($id) { if (!empty($id) && ctype_print($id)) { $this->id = trim($id); } return $this; }