src/Call/CallData.php
public function allEvents(): array
    {
        $events = $this->iterableEvents();

        if ($this->endEvent && $this->responseEvent !== $this->endEvent) {
            $events[] = $this->endEvent;
        }

        if ($this->responseEvent) {
            array_unshift($events, $this->responseEvent);
        }

        array_unshift($events, $this->calledEvent);

        return $events;
    }
public function allEvents(): array
    {
        $events = $this->iterableEvents();

        if ($this->endEvent && $this->responseEvent !== $this->endEvent) {
            $events[] = $this->endEvent;
        }

        if ($this->responseEvent) {
            array_unshift($events, $this->responseEvent);
        }

        array_unshift($events, $this->calledEvent);

        return $events;
    }
public function allEvents ( ) : array { $ events = $ this -> iterableEvents ( ) ; if ( $ this -> endEvent && $ this -> responseEvent !== $ this -> endEvent ) { $ events [ ] = $ this -> endEvent ; } if ( $ this -> responseEvent ) { array_unshift ( $ events , $ this -> responseEvent ) ; } array_unshift ( $ events , $ this -> calledEvent ) ; return $ events ; }
Get all events as an array.

@return array<Event> The events.
Get all events as an array .