public static function get() { if (self::$_ip === null) { try { self::$_ip = (string) infraRequestUtils::getRemoteAddress(); } catch (Exception $ex) { self::$_ip = ''; } } return self::$_ip; }
public function __toString() { if (self::$_ip === null) { self::$_ip = (string) infraRequestUtils::getRemoteAddress(); } return self::$_ip; }