Skip to content

Commit

Permalink
docs: add PHPDoc tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jun 19, 2024
1 parent adbc291 commit 4ad4bd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system/Config/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ public static function serviceExists(string $name): ?string
* Reset shared instances and mocks for testing.
*
* @return void
*
* @testTag only available to test code
*/
public static function reset(bool $initAutoloader = true)
{
Expand All @@ -362,6 +364,8 @@ public static function reset(bool $initAutoloader = true)
* Resets any mock and shared instances for a single service.
*
* @return void
*
* @testTag only available to test code
*/
public static function resetSingle(string $name)
{
Expand All @@ -375,6 +379,8 @@ public static function resetSingle(string $name)
* @param object $mock
*
* @return void
*
* @testTag only available to test code
*/
public static function injectMock(string $name, $mock)
{
Expand Down
1 change: 1 addition & 0 deletions system/Router/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public function __construct(RouteCollectionInterface $routes, ?Request $request
*
* @return (Closure(mixed...): (ResponseInterface|string|void))|string Controller classname or Closure
*
* @throws BadRequestException
* @throws PageNotFoundException
* @throws RedirectException
*/
Expand Down

0 comments on commit 4ad4bd3

Please sign in to comment.