public static function setCancelUrl($url) { if (filter_var($url, FILTER_VALIDATE_URL)) { self::$cancelUrl = $url; } }