-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): implement Top Functions endpoint in Profiler module
- Loading branch information
Showing
12 changed files
with
312 additions
and
96 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
This file was deleted.
Oops, something went wrong.
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
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
33 changes: 33 additions & 0 deletions
33
src/Module/Frontend/Module/Profiler/Message/TopFunctions/Column.php
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,33 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Buggregator\Trap\Module\Frontend\Module\Profiler\Message\TopFunctions; | ||
|
||
/** | ||
* @internal | ||
*/ | ||
final class Column implements \JsonSerializable | ||
{ | ||
/** | ||
* @param list<Value> $values | ||
*/ | ||
public function __construct( | ||
public readonly string $key, | ||
public readonly string $label, | ||
public readonly bool $sortable, | ||
public readonly string $description, | ||
public readonly array $values, | ||
) {} | ||
|
||
public function jsonSerialize(): array | ||
{ | ||
return [ | ||
'key' => $this->key, | ||
'label' => $this->label, | ||
'sortable' => $this->sortable, | ||
'description' => $this->description, | ||
'values' => $this->values, | ||
]; | ||
} | ||
} |
Oops, something went wrong.