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