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