src/Api/User.php
private function filterSessions(int $type) : array
    {
        $sessions = $this->sessions();
        
        $filteredSession = array_filter($sessions, function($session) use ($type) {
            if ($session->getTitleType() & $type) return $session;
        });

        return $filteredSession;
    }
private function filterSessions(int $type) : array
    {
        $sessions = $this->sessions();
        
        $filteredSession = array_filter($sessions, function($session) use ($type) {
            if ($session->getTitleType() & $type) return $session;
        });

        return $filteredSession;
    }
private function filterSessions ( int $ type ) : array { $ sessions = $ this -> sessions ( ) ; $ filteredSession = array_filter ( $ sessions , function ( $ session ) use ( $ type ) { if ( $ session -> getTitleType ( ) & $ type ) return $ session ; } ) ; return $ filteredSession ; }
Filter User's Sessions by SessionType flag.

@param integer $type SessionType flag.
@return array Array of Api\Session.
Filter User s Sessions by SessionType flag .