public function setTidOrOrderNumber($tid = null) { if (strlen($tid) < 1 || strlen($tid) > 20) { throw new \UnexpectedValueException("O string de consulta (Tid) deve ter entre 1 à 20 caracteres", 1); } $this->tid = $tid; }