src/Analyzers/HeaderAnalyzer.php
protected function readMessages()
    {
        $len = $this->readHeader('v', 2);
        $instructions = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $hints = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $victory = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $loss = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $history = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $scouts = rtrim($this->readHeaderRaw($len), "\0");
        return (object) [
            'instructions' => $instructions,
            'hints' => $hints,
            'victory' => $victory,
            'loss' => $loss,
            'history' => $history,
            'scouts' => $scouts,
        ];
    }
protected function readMessages()
    {
        $len = $this->readHeader('v', 2);
        $instructions = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $hints = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $victory = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $loss = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $history = rtrim($this->readHeaderRaw($len), "\0");
        $len = $this->readHeader('v', 2);
        $scouts = rtrim($this->readHeaderRaw($len), "\0");
        return (object) [
            'instructions' => $instructions,
            'hints' => $hints,
            'victory' => $victory,
            'loss' => $loss,
            'history' => $history,
            'scouts' => $scouts,
        ];
    }
protected function readMessages ( ) { $ len = $ this -> readHeader ( 'v' , 2 ) ; $ instructions = rtrim ( $ this -> readHeaderRaw ( $ len ) , "\0" ) ; $ len = $ this -> readHeader ( 'v' , 2 ) ; $ hints = rtrim ( $ this -> readHeaderRaw ( $ len ) , "\0" ) ; $ len = $ this -> readHeader ( 'v' , 2 ) ; $ victory = rtrim ( $ this -> readHeaderRaw ( $ len ) , "\0" ) ; $ len = $ this -> readHeader ( 'v' , 2 ) ; $ loss = rtrim ( $ this -> readHeaderRaw ( $ len ) , "\0" ) ; $ len = $ this -> readHeader ( 'v' , 2 ) ; $ history = rtrim ( $ this -> readHeaderRaw ( $ len ) , "\0" ) ; $ len = $ this -> readHeader ( 'v' , 2 ) ; $ scouts = rtrim ( $ this -> readHeaderRaw ( $ len ) , "\0" ) ; return ( object ) [ 'instructions' => $ instructions , 'hints' => $ hints , 'victory' => $ victory , 'loss' => $ loss , 'history' => $ history , 'scouts' => $ scouts , ] ; }
Read messages.

@return \StdClass
Read messages .