docs/examples/Server.php
protected function getUserInfo(string $username)
    {
        if (!isset($this->users[$username])) {
            return null;
        }

        return $this->users[$username];
    }
protected function getUserInfo(string $username)
    {
        if (!isset($this->users[$username])) {
            return null;
        }

        return $this->users[$username];
    }
protected function getUserInfo ( string $ username ) { if ( ! isset ( $ this -> users [ $ username ] ) ) { return null ; } return $ this -> users [ $ username ] ; }
Get the information about a user

@param string $username

@return array|object|null
Get the information about a user