src/Api/Session.php
public function titleType() : int
    {
        if (!isset($this->session->npTitleDetail)) return SessionType::Unknown;

        switch ($this->session->npTitleType) {
            case 'party':
            return SessionType::Party;
            case 'game':
            return sessionType::Game;
            default:
            return SessionType::Unknown;
        }
    }
public function titleType() : int
    {
        if (!isset($this->session->npTitleDetail)) return SessionType::Unknown;

        switch ($this->session->npTitleType) {
            case 'party':
            return SessionType::Party;
            case 'game':
            return sessionType::Game;
            default:
            return SessionType::Unknown;
        }
    }
public function titleType ( ) : int { if ( ! isset ( $ this -> session -> npTitleDetail ) ) return SessionType :: Unknown ; switch ( $ this -> session -> npTitleType ) { case 'party' : return SessionType :: Party ; case 'game' : return sessionType :: Game ; default : return SessionType :: Unknown ; } }
Get SessionType of Session.

@return integer SessionType flag.
Get SessionType of Session .