public function read(): array
    {
        while (!$this->streamBody->eof()) {
            $tweet = json_decode(
                $this->readStreamLine($this->streamBody),
                true
            );

            if (null !== $tweet) {
                return $tweet;
            }
        }
    }
public function read(): array
    {
        while (!$this->streamBody->eof()) {
            $tweet = json_decode(
                $this->readStreamLine($this->streamBody),
                true
            );

            if (null !== $tweet) {
                return $tweet;
            }
        }
    }
public function read ( ) : array { while ( ! $ this -> streamBody -> eof ( ) ) { $ tweet = json_decode ( $ this -> readStreamLine ( $ this -> streamBody ) , true ) ; if ( null !== $ tweet ) { return $ tweet ; } } }
Start reading the stream

@return array
Start reading the stream