The containing class is available as OS\sockaddr_in in the www repository.
OS\sockaddr_in
Get the port, in host byte order
final public function getPort(): int;
int