-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Record to represent profiler recordings
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace ICanBoogie\ConfigProfiler; | ||
|
||
use ICanBoogie\Config\Builder; | ||
|
||
readonly class Record | ||
{ | ||
/** | ||
* @template T of object | ||
* | ||
* @param float $timestamp When the configuration started to build. | ||
* @param float $duration The duration of the build. | ||
* @param class-string<T> $config_class | ||
* @param class-string<Builder<T>> $builder_class | ||
*/ | ||
public function __construct( | ||
public float $timestamp, | ||
public float $duration, | ||
public string $config_class, | ||
public string $builder_class, | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# $schema: https://phpstan.olvlvl.com/schema.json | ||
parameters: | ||
level: max | ||
paths: | ||
|