Trace/src/MessageEvent.php
public function info()
    {
        $data = [
            'id' => $this->id,
            'type' => $this->type
        ];

        if ($this->uncompressedSizeBytes) {
            $data['uncompressedSizeBytes'] = $this->uncompressedSizeBytes;
        }
        if ($this->compressedSizeBytes) {
            $data['compressedSizeBytes'] = $this->compressedSizeBytes;
        }

        return [
            'time' => $this->time,
            'messageEvent' => $data
        ];
    }
public function info()
    {
        $data = [
            'id' => $this->id,
            'type' => $this->type
        ];

        if ($this->uncompressedSizeBytes) {
            $data['uncompressedSizeBytes'] = $this->uncompressedSizeBytes;
        }
        if ($this->compressedSizeBytes) {
            $data['compressedSizeBytes'] = $this->compressedSizeBytes;
        }

        return [
            'time' => $this->time,
            'messageEvent' => $data
        ];
    }
public function info ( ) { $ data = [ 'id' => $ this -> id , 'type' => $ this -> type ] ; if ( $ this -> uncompressedSizeBytes ) { $ data [ 'uncompressedSizeBytes' ] = $ this -> uncompressedSizeBytes ; } if ( $ this -> compressedSizeBytes ) { $ data [ 'compressedSizeBytes' ] = $ this -> compressedSizeBytes ; } return [ 'time' => $ this -> time , 'messageEvent' => $ data ] ; }
Returns a serializable array representing this MessageEvent.

@access private
@return array
Returns a serializable array representing this MessageEvent .