Skip to content

Commit

Permalink
[Stopwatch] fix some phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Jul 28, 2019
1 parent 2113e67 commit 73d8bf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Stopwatch\Stopwatch;
use Symfony\Component\Stopwatch\StopwatchEvent;

/**
* TimeDataCollector.
Expand Down Expand Up @@ -77,7 +78,7 @@ public function lateCollect()
/**
* Sets the request events.
*
* @param array $events The request events
* @param StopwatchEvent[] $events The request events
*/
public function setEvents(array $events)
{
Expand All @@ -91,7 +92,7 @@ public function setEvents(array $events)
/**
* Gets the request events.
*
* @return array The request events
* @return StopwatchEvent[] The request events
*/
public function getEvents()
{
Expand Down
6 changes: 4 additions & 2 deletions src/Symfony/Component/Stopwatch/Section.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public function get($id)
return $child;
}
}

return null;
}

/**
Expand Down Expand Up @@ -110,8 +112,8 @@ public function setId($id)
/**
* Starts an event.
*
* @param string $name The event name
* @param string $category The event category
* @param string $name The event name
* @param string|null $category The event category
*
* @return StopwatchEvent The event
*/
Expand Down

0 comments on commit 73d8bf8

Please sign in to comment.