public static function parse($raw)
    {
        if ($raw == 'stop') {
            return self::STOPPED;
        } elseif ($raw == 'pause') {
            return self::PAUSED;
        } elseif ($raw == 'play') {
            return self::PLAYING;
        }
        return 3;
    }
public static function parse($raw)
    {
        if ($raw == 'stop') {
            return self::STOPPED;
        } elseif ($raw == 'pause') {
            return self::PAUSED;
        } elseif ($raw == 'play') {
            return self::PLAYING;
        }
        return 3;
    }
public static function parse ( $ raw ) { if ( $ raw == 'stop' ) { return self :: STOPPED ; } elseif ( $ raw == 'pause' ) { return self :: PAUSED ; } elseif ( $ raw == 'play' ) { return self :: PLAYING ; } return 3 ; }
Parse state from raw response
@param string $raw Raw response
@return int Member of enum
Parse state from raw response