<dd>{if $session->isCurrentSession()}{lang}wcf.user.security.currentSession{/lang}{else}{@$session->getLastActivityTime()|time}{/if}</dd>
<dt>{lang}wcf.user.security.ipAddress{/lang}</dt>
- <dd title="{$session->getIpAddress()}">{$session->getIpAddress()->mask(16, 48)}</dd>
+ <dd title="{$session->getIpAddress()}">{$session->getIpAddress()->toMasked(16, 48)}</dd>
</dl>
</div>
/**
* Returns a new IP address with the last $maskX bits masked off.
*/
- public function mask(int $mask4, int $mask6): self
+ public function toMasked(int $mask4, int $mask6): self
{
if ($mask4 < 0 || $mask4 > 32) {
throw new \InvalidArgumentException('Given $mask4 is not in the interval [0, 32].');