$this->
setEvents($this->stopwatch->
getSectionEvents($this->data
['token'
]));
} unset($this->data
['token'
]);
} /**
* @param StopwatchEvent[] $events The request events
*/
public function setEvents(array
$events): void
{ foreach ($events as $event) { $event->
ensureStopped();
} $this->data
['events'
] =
$events;
} /**
* @return StopwatchEvent[]
*/
public function getEvents(): array
{ return $this->data
['events'
];
}