public function jsonSerialize() : array
    {
        return [
          'id'        => $this->getId(),
          'timestamp' => $this->getTimestamp(),
          'name'      => $this->getTransactionName(),
          'duration'  => $this->summary['duration'],
          'type'      => $this->getMetaType(),
          'result'    => $this->getMetaResult(),
          'context'   => $this->getContext(),
          'spans'     => $this->getSpans(),
          'processor' => [
              'event' => 'transaction',
              'name'  => 'transaction',
          ]
      ];
    }
public function jsonSerialize() : array
    {
        return [
          'id'        => $this->getId(),
          'timestamp' => $this->getTimestamp(),
          'name'      => $this->getTransactionName(),
          'duration'  => $this->summary['duration'],
          'type'      => $this->getMetaType(),
          'result'    => $this->getMetaResult(),
          'context'   => $this->getContext(),
          'spans'     => $this->getSpans(),
          'processor' => [
              'event' => 'transaction',
              'name'  => 'transaction',
          ]
      ];
    }
public function jsonSerialize ( ) : array { return [ 'id' => $ this -> getId ( ) , 'timestamp' => $ this -> getTimestamp ( ) , 'name' => $ this -> getTransactionName ( ) , 'duration' => $ this -> summary [ 'duration' ] , 'type' => $ this -> getMetaType ( ) , 'result' => $ this -> getMetaResult ( ) , 'context' => $ this -> getContext ( ) , 'spans' => $ this -> getSpans ( ) , 'processor' => [ 'event' => 'transaction' , 'name' => 'transaction' , ] ] ; }
Serialize Transaction Event

@return array
Serialize Transaction Event